forked from MarseyWorld/MarseyWorld
print archive.org exceptions
parent
b416f2fb67
commit
03f37e4972
|
@ -30,7 +30,7 @@ def badge_grant(user, badge_id, description=None, url=None):
|
||||||
|
|
||||||
def archiveorg(url):
|
def archiveorg(url):
|
||||||
try: requests.get(f'https://web.archive.org/save/{url}', headers={'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'}, timeout=100)
|
try: requests.get(f'https://web.archive.org/save/{url}', headers={'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'}, timeout=100)
|
||||||
except: pass
|
except Exception as e: print(e, flush=True)
|
||||||
|
|
||||||
def execute_snappy(post, v):
|
def execute_snappy(post, v):
|
||||||
snappy = get_account(SNAPPY_ID)
|
snappy = get_account(SNAPPY_ID)
|
||||||
|
|
Loading…
Reference in New Issue