Here\'s my code:
import urllib2.request response = urllib2.urlopen(\"http://www.google.com\") html = response.read() print(html)
Any help?
Simplest of all solutions:
In Python 3.x:
import urllib.request url = "https://api.github.com/users?since=100" request = urllib.request.Request(url) response = urllib.request.urlopen(request) data_content = response.read() print(data_content)