interface web-browser bot helper
I have the interface with many controls which I need to set, the problem is that there are too many controls I need to set data in and click (whey work via ajax on https page). I want to write some helper which is integrated in my browser and do route clicking on certain page for me. It's Preferable to do this component with python. But I don't know how to start, how to do it in general terms? which libs preferably to us开发者_运维技巧e etc?
I would first try doing this with mechanize. If the web page needs to execute javascript, you could
- study the javascript to figure out what it does and mimick it with Python code (perhaps hard),
- use TamperData or similar app to inspect headers and post parameters.
- use Firebug or similar app to inspect GET/POST requests. (Click on the Net>All buttons).
- or use SeleniumRC to programmatically control your normal (javascript-capable) web browser.
精彩评论