SyntaxFix
Write A Post
Hire A Developer
Questions
I am also using this approach for csv files (Python 3.6.9):
import csv import io import requests r = requests.get(url) buff = io.StringIO(r.text) dr = csv.DictReader(buff) for row in dr: print(row)