Answer the question
In order to leave comments, you need to log in
How to download a file from an indirect link?
Gentlemen, help solve the problem:
There is a site where you need to download a csv file for further data manipulation.
The link to the file is not direct, but this
CSV_URL = f'somesite.ru/?export_excel=Y&FILTER%5BUF_WAREHOUSE%5D=1&FILTER%5BUF_SHIPPING_DATE%5D%5Bstart%5D%5B0%5D={date}&FILTER%5BUF_SHIPPING_DATE%5D%5Bfinish%5D%5B0%5D={date}'
Answer the question
In order to leave comments, you need to log in
Open the browser debug console and see what kind of request the browser makes to download the file. Right click and copy the CURL command to run this query from the command line.
In the conditions of the meager information that you provided (without examples), nothing will tell you more.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question