yrsdata /

Full commit
# Example of using Requests to download data from a URL,
# followed by Tablib to process the data

import requests
import tablib

url = ''

response = requests.get(url)

data = tablib.Dataset()
data.csv = response.text   # yes, it really is that simple!
                           # for JSON data, assign to data.json

print 'Dataset has', len(data), 'rows'

print 'Exporting as JSON to data.json...'
with open('data.json', 'w') as outfile:

print 'Exporting as OpenDocument Spreadsheet to data.ods...'
with open('data.ods', 'wb') as outfile:

# Note: similar approach will export data to Excel spreadsheets
# (both .xls and .xlsx formats are supported)