How to access the web with Python?
Two suggested answers:
http://docs.python.org/library/httplib.html
http://docs.python.org/library/urllib.html
Good introduction is also a chapter from Dive into Python3 Chapter 13. HTTP Web Services
You can access websites by HTTP protocol client: httplib
Though maybe you'd like urllib2, in specific the urllib2.urlopen
Here's little example about using urllib2:
import urllib2
page = urllib2.urlopen("http://example.com/").read()
print page