Fetching websites with Python
mf at orase.com
Wed Mar 31 19:33:45 CEST 2004
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
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
How can I do this?
More information about the Python-list