Mechanize (python) click on a javascript type link?

I don't think this is possible with the mechanize module: it doesn't have the ability to interact with JavaScript: its purely Python and HTTP based That said, you may be intested in python-spidermonkey module, which it seems is aimed at letting you do just this kind of thing. According to it's website it's aim is to let you Execute arbitrary JavaScript code from Python. Allows you to reference arbitrary Python objects and functions in the JavaScript VM I've not used it yet but it certainly looks like it would do what you are looking for, although it is still in alpha.

I don't think this is possible with the mechanize module: it doesn't have the ability to interact with JavaScript: its purely Python and HTTP based. That said, you may be intested in python-spidermonkey module, which it seems is aimed at letting you do just this kind of thing. According to it's website it's aim is to let you "Execute arbitrary JavaScript code from Python.

Allows you to reference arbitrary Python objects and functions in the JavaScript VM" I've not used it yet but it certainly looks like it would do what you are looking for, although it is still in alpha.

1 Looks like he's working with a page that does a whole lot of AJAX. I'm not sure dumping that into a JavaScript engine will be enough, unless he's willing to do a lot of extra work. – user120242 Aug 13 '09 at 6:29.

I don't think this is possible with the mechanize module: it doesn't have the ability to interact with JavaScript: its purely Python and HTTP based.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions