[Tutor] Get information from a web page

python-tutor@toddmaynard.com python-tutor at toddmaynard.com
Mon Aug 8 11:11:57 CEST 2005

Not sure exactly what you have going wrong without the code or the exact url 
you are using.  

Does something like:

import urllib

page = 
print page 

give you the correct results?

Is the problem specific to only to that url?


On Monday 08 August 2005 04:46 am, David Holland wrote:
> Hi All,
> I am trying to save to disk a webpage (so I can extract useful info) with a
> url of type "http://xxx.co.uk/index.php?node=2371&pagetree=&fromid=20397".
> However the following :-
> urllib.urlopen, urllib._urlopener, urllib2.Request,
> urllib2.urlopen,urllib2.urlretrieve just retrieve this webpage :-
> http://xxx.co.uk (the root page) not the page I wanted to retrieve, any
> ideas about to get the right page ? Thanks inadvance
> David
> ---------------------------------
> Yahoo! Messenger  NEW - crystal clear PC to PC calling worldwide with
> voicemail

More information about the Tutor mailing list