1
0
Fork 0

Fix archive_dot_org submit_url

It was removing functional query parameters. (e.g., https://news.ycombinator.com/item?id=18216459)
This commit is contained in:
William Esz 2018-10-15 13:09:31 +02:00
parent 8b850393df
commit a59d609571

View file

@ -352,7 +352,7 @@ def archive_dot_org(link_dir, link, timeout=TIMEOUT):
archive_org_url = open(path, 'r').read().strip()
return {'output': archive_org_url, 'status': 'skipped'}
submit_url = 'https://web.archive.org/save/{}'.format(link['url'].split('?', 1)[0])
submit_url = 'https://web.archive.org/save/{}'.format(link['url'])
success = False
CMD = ['curl', '-L', '-I', '-X', 'GET', submit_url]