why not in python 2.4.3

Rocco r.pellegrini at gmail.com
Sun May 28 15:17:05 EDT 2006


hi
I made the upgrade to python 2.4.3 from 2.4.2.
I want to take from google news some atom feeds with a funtion like
this
import urllib2
def takefeed(url):
	request=urllib2.Request(url)
	request.add_header('User-Agent', 'Mozilla/4.0 (compatible; MSIE 5.5;
Windows NT')
	opener = urllib2.build_opener()
	data=opener.open(request).read()
	return data
url='http://news.google.it/?output=rss'
d=takefeed(url)
This woks well with python 2.3.5 but does not work with 2.4.3.
Why?
Thanks




More information about the Python-list mailing list