I tried to open a link with urlopen:<br><br>import urllib2<br>alink = "<a href="http://feeds.nytimes.com/click.phdo?i=ff074d9e3895247a31e8e5efa5253183">http://feeds.nytimes.com/click.phdo?i=ff074d9e3895247a31e8e5efa5253183</a>"<br>
f = urllib2.urlopen(alink)<br>print f.read()<br><br>and got the followinig error:<br><br>urllib2.HTTPError: HTTP Error 301: The HTTP server returned a redirect error tha<br>t would lead to an infinite loop.<br>The last 30x error message was:<br>
Moved Permanently<br><br>I can open the link in browser. Any way to get solve this? Thanks.<br><br>Wen<br>