title: Python-requests - Download progress bar
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>How do I add a progress bar?</p>
  
  <pre><code>r = requests.post(URL, data, stream=True)
  #Download progress here
  </code></pre>