From 2540b541130c12ad8814c25ab2e1356f529af15c Mon Sep 17 00:00:00 2001 From: Logan Williams Date: Tue, 1 Jun 2021 11:30:47 +0200 Subject: [PATCH] Allow redirects for Archive requets --- auto_archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_archive.py b/auto_archive.py index bb2cc1a..17a548e 100644 --- a/auto_archive.py +++ b/auto_archive.py @@ -383,7 +383,7 @@ def process_sheet(sheet): # i'm sure there's a better way to handle this than nested try/catch blocks try: r = requests.get( - 'https://web.archive.org/save/' + v[url_index]) + 'https://web.archive.org/save/' + v[url_index], allow_redirects=True) parsed = BeautifulSoup(r.content, 'html.parser') title = parsed.find_all('title')[0].text