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

Andrey Khavryuchenko akhavr at kds.com.ua
Tue Jan 16 05:38:48 EST 2007


John,

"J" == John  wrote:

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

Up to my knowledge, there no way to test javascript but to fire up a
browser.

So, you might check Selenium (http://www.openqa.org/selenium/) and its
python module.

-- 
Andrey V Khavryuchenko            
Software Development Company http://www.kds.com.ua/



More information about the Python-list mailing list