Re: [Tutor] Import CSV

2018-12-13 Thread Alan Gauld via Tutor
On 13/12/2018 16:56, Sammy Lee wrote: > I need help on how to open a webpage and save the HTML to a given file path, > given a URL. You can use the standard library urllib module to fetch the file but most folks find the requests module easier to use. requests is a 3rd party module you will need

Re: [Tutor] Import CSV

2018-12-13 Thread Adam Eyring
Take a look at the book Automating the Boring Stuff with Python (free PDF): https://automatetheboringstuff.com/ There's a couple of chapters in there for downloading CSV files and extracting the data. On Thu, Dec 13, 2018 at 1:57 PM Sammy Lee wrote: > I need help on how to open a webpage and sa

Re: [Tutor] Import CSV

2018-12-13 Thread Sammy Lee
def save_url_to_file(url, savefile): This is the starting code. > On December 13, 2018 at 11:56 AM Sammy Lee wrote: > > > I need help on how to open a webpage and save the HTML to a given file > path, given a URL. > ___ Tutor maillist - Tu

[Tutor] Import CSV

2018-12-13 Thread Sammy Lee
I need help on how to open a webpage and save the HTML to a given file path, given a URL. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor