Aevann1 2022-03-19 15:50:33 +02:00
parent e580b6fe52
commit ec6b596348
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ def fix(v):
if num: li = li[:int(num)]
for post in li:
print(post.id, flush=True)
req = requests.get(f"https://web.archive.org/{post.url}", timeout=5)
try: req = requests.get(f"https://web.archive.org/{post.url}", timeout=5)
except: continue
if str(req) == '<Response [200]>':
print(post.url, flush=True)
post.url = req.url.replace('/https://i.ibb.co/','if_/https://i.ibb.co/')