Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

urllib.request.urlretrieve

>>> import urllib.request
>>> #urllib.request.urlretrieve(url, filename=None, reporthook=None, data=None)
#Copy a network object denoted by a URL to a local file
>>> local_filename, headers = urllib.request.urlretrieve('http://python.org/')
>>> html = open(local_filename)
>>> html.close()
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
8+9 =