Download files via HTTP

Asked 2 years ago, Updated 2 years ago, 92 views

You download MP3 files from the website at certain times You are about to build/update a podcast XML file associated with itunes.

I've created code to create and update XML files All I have to do is make a code to download the file How can I download files to Python?

python http download

2022-09-22 13:31

1 Answers

For URL, try urlib2 on Python2 or higher

The simplest way to write is to:

import urllib2
response = urllib2.urlopen('http://www.google.com/')
html = response.read()


2022-09-22 13:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.