How to download a web page just like a web browser do ?
Cyril Bazin
cyril.bazin at info.unicaen.fr
Wed Aug 23 10:50:47 EDT 2006
More information about the Python-list mailing list
Wed Aug 23 10:50:47 EDT 2006
- Previous message (by thread): How to download a web page just like a web browser do ?
- Next message (by thread): How to download a web page just like a web browser do ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
look at the modules urllib and urllib2, they both are provided with python : http://docs.python.org/lib/module-urllib.html http://docs.python.org/lib/module-urllib2.html And look at the examples : http://docs.python.org/lib/node483.html http://docs.python.org/lib/urllib2-examples.html On 23 Aug 2006 07:34:45 -0700, Bo Yang <struggleyb at gmail.com> wrote: > > Hi , > It is about one month passed since I post to this list > last time . Yes , I use python , I used it in every day normal > work , whenever I need to do some scripts or other little-scale > works , python is the first one I took consideration in . I must > say it is a powerful tool for me , and what is more important > is there is a friendly and flourish community here . > Oh , I must stop appriciation and go to my question now . > > Everyday , I receive a newsletter from NYTimes , but I > didn't want to read the news in evening the time the letter > came in . So , I am about to download the web page > contains the news and read them next morning ! I decide to > use python to write a tool , which should be feeded with a > URL , and then download the page to my disk . This > function just like the Browser's "save as..." function . I > know what shoud I do to accomplish that , I need to parse > the web page , and download all pages in the page , and > modify all the links to conrespond local disk links and ... > > So , is there any similar function any one have impelment? > Does anyone can share some code with me ? I really don't > want to some confusing code to process such as text findings > and substitutions . > > Thanks in advance ! > > > Bo > > -- > http://mail.python.org/mailman/listinfo/python-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20060823/2619c7a3/attachment.html>
- Previous message (by thread): How to download a web page just like a web browser do ?
- Next message (by thread): How to download a web page just like a web browser do ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list