Re: downloading a CSV

2016-02-19 Thread Tim Chase
On 2016-02-19 10:46, noydb wrote: > I want to be able to download this CSV file and save to disk > >> http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv from urllib.request import urlopen data = urlopen("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.c

Re: downloading a CSV

2016-02-19 Thread Joel Goldstick
On Fri, Feb 19, 2016 at 3:05 PM, noydb wrote: > Thanks! That was pretty easy. > > import urllib.request > url = ' > http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv' > urllib.request.urlretrieve(url, csv_file) > csv_file = r"C:\Temp\earthquakeAll_last30days.csv" > urllib.re

Re: downloading a CSV

2016-02-19 Thread noydb
Thanks! That was pretty easy. import urllib.request url = 'http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv' urllib.request.urlretrieve(url, csv_file) csv_file = r"C:\Temp\earthquakeAll_last30days.csv" urllib.request.urlretrieve(url, csv_file) I do want to use python -- the

Re: downloading a CSV

2016-02-19 Thread Grant Edwards
On 2016-02-19, noydb wrote: > Greetings All, > > Python v 3.4, windows > > I want to be able to download this CSV file and save to disk >>> http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv Unless you really want to write a Python program, "wget" is a good solution: htt

Re: downloading a CSV

2016-02-19 Thread MRAB
On 2016-02-19 18:46, noydb wrote: Greetings All, Python v 3.4, windows I want to be able to download this CSV file and save to disk http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv This (interacting with the web using python) is very new to me, so can anyone provide di

downloading a CSV

2016-02-19 Thread noydb
Greetings All, Python v 3.4, windows I want to be able to download this CSV file and save to disk >> http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv This (interacting with the web using python) is very new to me, so can anyone provide direction on how to go about doing t