Using wget via Python

linux, python

Solution

Short answer (simplified). To get one file

 import urllib.request
 urllib.request.urlretrieve("http://google.com/index.html", filename="local/index.html")

You can figure out how to loop that if necessary.

Problem

How would I download files (video) with Python using wget and save them locally? There will be a bunch of files, so how do I know that one file is downloaded so as to automatically start downloding another one? Thanks.

Original source

Related problems