Python urllib
module handles URL fetching and parsing.
urlopen
method, retrieve URL page. For Example, to retrive "http://https://convert.idontcarewhatyouthink.net":
>>> import urllib.request >>> r = urllib.request.urlopen("http://https://convert.idontcarewhatyouthink.net") >>> rad = r.read()
urlretieve
retrieve URL and store it in a temporary location:
>>> import urllib.request >>> file, headers = urllib.request.urlretrieve("http://https://convert.idontcarewhatyouthink.net") >>> rad = open(file)