New submission from Ambarish Malpani <[EMAIL PROTECTED]>:
I have the following code:
import urllib
u = 'http://www.mercurynews.com/ci_9216417'
h = urllib.urlopen(u).read()
print h
# Get an empty string
#(can use urllib2 also - get the same behavior)
If I visit the same page
Ambarish Malpani <[EMAIL PROTECTED]> added the comment:
Sorry, should have added another line:
The reason this is important to fix, is I am getting that URL with a //
in a Moved (HTTP 302) message, so I can't just get rid of the //
__
Tracker <[E
New submission from Ambarish Malpani <[EMAIL PROTECTED]>:
Try the following code:
import urllib
import urllib2
url =
'http://features.us.reuters.com//autos/news/95ED98EE-A837-11DC-BCB3-4F218271.html'
data = urllib.urlopen(url).read()
data2 = urllib2.urlopen(url).read()
The a