python and web pages

Daniel Dalton d.dalton at
Sat Nov 21 02:47:01 CET 2009

On Thu, Nov 19, 2009 at 09:43:50AM +0100, Diez B. Roggisch wrote:
> >elinks, links, links2 and do the following.
> >1. Open a certain web page and find the first text box on the page, and
> >put this text into the form.
> >2. Press the submit button, and wait for the result page to load.
> >3. Click on the 15th link down the page.
> >
> >So, how do I do this, can anyone point me to some docs or modules that
> >may help out here?
> Use the module "mechanize". It will mimic a browser, and allows you
> to navigate to pages, fill in forms & submit them.

Well, what seemed a very daunting task at first, proved to be quite
easy, after a little bit of research. Thanks very much, I've written my
script, and it works correctly, using the mechanize module.

Thanks for everyone's help


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <>

More information about the Python-list mailing list