From a6cb955669f18a6c62d434fce931aae4d6e8a09d Mon Sep 17 00:00:00 2001 From: akamhy <64683866+akamhy@users.noreply.github.com> Date: Tue, 5 May 2020 10:04:40 +0530 Subject: [PATCH] Update wrapper.py --- waybackpy/wrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waybackpy/wrapper.py b/waybackpy/wrapper.py index ee68e06..94dcf32 100644 --- a/waybackpy/wrapper.py +++ b/waybackpy/wrapper.py @@ -17,8 +17,8 @@ def clean_url(url): def save(url,UA=default_UA): base_save_url = "https://web.archive.org/save/" request_url = (base_save_url + clean_url(url)) - hdr = { 'User-Agent' : '%s' % UA } - req = Request(request_url, headers=hdr) + hdr = { 'User-Agent' : '%s' % UA } #nosec + req = Request(request_url, headers=hdr) #nosec if "." not in url: raise InvalidUrl("'%s' is not a vaild url." % url) try: