K
K
Kirushkaa2020-08-11 16:06:38
Python
Kirushkaa, 2020-08-11 16:06:38

Why is not the full file downloaded via python url?

I download the file via url from Bitrix. If I just click on the link in the browser, then a full-fledged file is downloaded. If I start using python, then a corrupted 22kb file is downloaded

files = []
for file in result:
    files.append(url+file['downloadUrl'])
wget.download(files[0], 'lead_2020.pdf')

url itself https://bitrix24.ru/bitrix/components/bitrix/crm.d...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-08-11
@Kirushkaa

You may need authorization. What is downloaded through the browser if you delete all site data?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question