File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def get_proxy(proxies):
121
121
def download_file (url , dwnld_dir , timeout = 6 ):
122
122
try :
123
123
logging .debug ('Downloading: {}' .format (url ))
124
- response = requests .get (url , headers = {'User-Agent' : get_agent ()}, verify = False , timeout = timeout )
124
+ response = requests .get (url , headers = {'User-Agent' :get_agent ()}, verify = False , timeout = timeout )
125
125
http_code = get_statuscode (response )
126
126
127
127
if http_code != 200 :
@@ -186,6 +186,5 @@ def get_agent():
186
186
'''Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0''' ,
187
187
'''Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko''' ,
188
188
'''Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36''' ,
189
- '''Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36''' ,
190
- ])
189
+ '''Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36''' ])
191
190
You can’t perform that action at this time.
0 commit comments