urllib2で、User-agentなどを設定
>>> import urllib2
>>> opener = urllib2.build_opener()
>>> opener.addheaders = [('User-agent', 'Python2.4.3'),('Accept-Language','ja,en-us;q=0.7,en;q=0.3')]
>>> url = 'http://www.example.com/'
>>> f = opener.open(url)
>>> opener = urllib2.build_opener()
>>> opener.addheaders = [('User-agent', 'Python2.4.3'),('Accept-Language','ja,en-us;q=0.7,en;q=0.3')]
>>> url = 'http://www.example.com/'
>>> f = opener.open(url)