开发者

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

  1. study the javascript to figure out what it does and mimick it with Python code (perhaps hard),
  2. use TamperData or similar app to inspect headers and post parameters.
  3. use Firebug or similar app to inspect GET/POST requests. (Click on the Net>All buttons).
  4. or use SeleniumRC to programmatically control your normal (javascript-capable) web browser.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜