html + javascript automations = [mechanize + ?? ] or something else?

John weekender_ny at yahoo.com
Tue Jan 16 05:46:45 CET 2007


I am curious about the webbrowser module. I can open up firefox
using webbrowser.open(), but can one control it? Say enter a
login / passwd on a webpage? Send keystrokes to firefox?
mouse clicks?

Thanks,
--j

John wrote:
> I have to write a spyder for a webpage that uses html + javascript. I
> had it written using mechanize
> but the authors of the webpage now use a lot of javascript. Mechanize
> can no longer do the job.
> Does anyone know how I could automate my spyder to understand
> javascript? Is there a way
> to control a browser like firefox from python itself? How about IE?
> That way, we do not have
> to go thru something like mechanize?
> 
> Thanks in advance for your help/comments,
> --j




More information about the Python-list mailing list