What are useful libraries to download a website?
URLLIB, URLLIB2 and REQUESTS
How to download a website with urllib?
import urllib
webpage = "http://www.ucd.ie/cci/people.html" connection = urllib.urlopen(webpage) contents = connection.read()
print(contents)
How to download a website with requests?
import requests
webpage = "http://www.ucd.ie/cci/people.html" contents = requests.get(webpage)
print(contents.text)