title: Use python request to download and save CSV
body: <p>I'm new to python and really struggling with writing a program to download a CSV from <a href="https://coronavirus.data.gov.uk/?_ga=2.157835066.1251021075.1589887735-1783596499.1585566366" rel="nofollow noreferrer">this page</a>
  So far I have:</p>
  
  <pre><code>import csv
  import requests
  import os
  
  output_dir = 'C:/Users/Moshe/Downloads'
  output_file = 'Covid_19_uk_timeseries.csv'
  
  CSV_URL = 'https://coronavirus.data.gov.uk/downloads/csv/coronavirus-deaths_latest.csv'
  
  assert os.path.exists(output_dir)# test that we can write to output_dir
  
  with requests.Session() as s:
      download = s.get(CSV_URL)
  
      decoded_content = download.content.decode('utf-8')
  
      cr = csv.reader(decoded_content.splitlines(), delimiter=',')
  
      my_list = list(cr)
      for row in my_list:
          print(row)
  
  </code></pre>
  
  <p>Its output show that it gets the CSV fine, and has access to the output directory. But for now I just want to save it as it is, and can't seem to work out how to do that.</p>