We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ca1afd + d87f7d8 commit 4fe619aCopy full SHA for 4fe619a
tilda/helpers.py
@@ -2,7 +2,8 @@
2
3
4
def download_file(url, filename):
5
- r = requests.get(url, stream=True, verify=False)
+ headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0'}
6
+ r = requests.get(url, stream=True, verify=False, headers=headers)
7
with open(filename, 'wb') as fd:
8
for chunk in r.iter_content(chunk_size=128):
9
fd.write(chunk)
0 commit comments