I tried to open a link with urlopen:

import urllib2
alink = "
http://feeds.nytimes.com/click.phdo?i=ff074d9e3895247a31e8e5efa5253183";
f = urllib2.urlopen(alink)
print f.read()

and got the followinig error:

urllib2.HTTPError: HTTP Error 301: The HTTP server returned a redirect error
tha
t would lead to an infinite loop.
The last 30x error message was:
Moved Permanently

I can open the link in browser. Any way to get solve this? Thanks.

Wen
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to