master
Paul Walko 2019-11-26 01:12:58 -05:00
parent 81d168a897
commit 3ef6732cd3
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ for table in tables:
continue
r = requests.get("https://fusiontables.googleusercontent.com/exporttable?query=select+*+from+{}&o=zip".format(table))
print(r.status_code)
if r.status_code != 200:
if r.status_code == 200:
print("Saving ./data/{}".format(data_file))
with open("./data/{}".format(data_file), 'wb') as f:
f.write(r.content)