scripting a web site w/Javascript

Paul Rubin http
Fri Sep 10 16:22:07 EDT 2004


Patrick Useldinger <p at trick.lu> writes:
> I would like to script a specific website. I've had a start with
> httplib, but now I need to push a button (<input type=button>) that
> triggers a Javascript function and then directs to some
> URL. Obviously, I cannot just go to the URL because the function would
> not get executed.
> 
> Can something like this be done via httplib? If not, is there a
> library available to do it?

You pretty much have to examine the javascript and figure out what it
really sends to the server when you press the button.  Then program
httplib or urllib to send the same thing.



More information about the Python-list mailing list