Skip to content

Commit 2f0b3b4

Browse files
authored
1 parent 8ef4f97 commit 2f0b3b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pymeta/search.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def get_proxy(proxies):
121121
def download_file(url, dwnld_dir, timeout=6):
122122
try:
123123
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)
125125
http_code = get_statuscode(response)
126126

127127
if http_code != 200:
@@ -186,6 +186,5 @@ def get_agent():
186186
'''Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0''',
187187
'''Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko''',
188188
'''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'''])
191190

0 commit comments

Comments
 (0)