Fetching websites with Python
From: Markus Franz (mf_at_orase.com)
Date: 03/31/04
- Next message: Joe Mason: "Re: Looking for example of brilliant python code showing off its features"
- Previous message: Robin Dunn: "wxPython docs [was Re: Python Documentation Blows!]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 19:33:45 +0200
Hi.
How can I grab websites with a command-line python script? I want to start
the script like this:
./script.py ---xxx--- http://www.address1.com http://www.address2.com
http://www.address3.com
The script should load these 3 websites (or more if specified) in parallel
(may be processes? threads?) and show their contents seperated by ---xxx---.
The whole output should be print on the command-line. Each website should
only have 15 seconds to return the contents (maximum) in order to avoid a
never-ending script.
How can I do this?
Thanks.
Yours sincerely
Markus Franz
- Next message: Joe Mason: "Re: Looking for example of brilliant python code showing off its features"
- Previous message: Robin Dunn: "wxPython docs [was Re: Python Documentation Blows!]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|