1import csv
2import requests
3
4CSV_URL = 'http://samplecsvs.s3.amazonaws.com/Sacramentorealestatetransactions.csv'
5
6with requests.Session() as s:
7 download = s.get(CSV_URL)
8
9 decoded_content = download.content.decode('utf-8')
10
11 cr = csv.reader(decoded_content.splitlines(), delimiter=',')
12 my_list = list(cr)
13 for row in my_list:
14 print(row)