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
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
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
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