Easy Fix... import urllib the_url = "http://www.google.com" req = urllib.urlopen(the_url) Does this work for you??