I'm trying to import this one .csv file from the Amazon S3 bucket using the code below:
import csv
with open('https://s3.amazonaws.com/carto-1000x/data/yellow_tripdata_2016-01.csv', 'rb') as teste:
reader = csv.reader(teste)
for linha in reader:
print linha
I'm using the PyCharm IDE with Python 2.7.13 which already comes installed on the Mac. And I get a message that the link does not exist and when I call the link in the browser it opens quietly.
Does anyone know if I need any library to be able to read this csv that is in S3?
Remembering that I ran a test with a local csv and it worked.