Maybe your python2.5 not working good!?
But, I use python 2.6 , and i use this for your problem:
import urllib
html = urllib.urlopen("http://www.rediff.com/";).read()
print html
If you want use authenticate then...
You make working urllib2 and use this
>>>auth = urllib2.Request(auth_uri, authreq_d
Check your connection to the internet.
On Sat, Aug 1, 2009 at 6:43 PM, Marcus Wanner wrote:
> On 8/1/2009 11:31 AM, Jon Clements wrote:
>
>> On 1 Aug, 14:52, MRAB wrote:
>>
>>> tarun wrote:
>>>
Dear All,
I want to read a webpage and copy the contents of it in word file. I
tried t
On 8/1/2009 11:31 AM, Jon Clements wrote:
On 1 Aug, 14:52, MRAB wrote:
tarun wrote:
Dear All,
I want to read a webpage and copy the contents of it in word file. I
tried to write following code:
import urllib2
urllib2.urlopen("http://www.rediff.com/";)
*Error:-*
urllib2.urlopen("http://www.
On 1 Aug, 14:52, MRAB wrote:
> tarun wrote:
> > Dear All,
> > I want to read a webpage and copy the contents of it in word file. I
> > tried to write following code:
>
> > import urllib2
> > urllib2.urlopen("http://www.rediff.com/";)
>
> > *Error:-*
>
> > urllib2.urlopen("http://www.icicibank.
On Aug 1, 6:52 pm, MRAB wrote:
> tarun wrote:
> > Dear All,
> > I want to read a webpage and copy the contents of it in word file. I
> > tried to write following code:
>
> > import urllib2
> > urllib2.urlopen("http://www.rediff.com/";)
>
> > *Error:-*
>
> > urllib2.urlopen("http://www.iciciban
tarun wrote:
Dear All,
I want to read a webpage and copy the contents of it in word file. I
tried to write following code:
import urllib2
urllib2.urlopen("http://www.rediff.com/";)
*Error:-*
urllib2.urlopen("http://www.icicibank.com/";)
File "C:\Python25\lib\urllib2.py", line 121, in u