I make a POST request to a server to generate a CSV file and response of the POST request is CSV data that I want to write to a file.
I can never know the size of the CSV file (it can be 10MB, 100MB or 1000MB) and as such there is no content-length header.
I have written a function that downloads makes a POST request to the server, generates a CSV file and writes the response to a CSV file. However, I am struggling with progress bar.
How do I add a progress bar?
r = requests.post(URL, data, stream=True)
#Download progress here