WingedPanther said:
Are you interacting with a browser, or directly reading the site via python over the web? In the first case, just simulate a click event. In the second case, you'll need to write a JavaScript engine.
Well, actually I don't really know where to start and couldn't find a book teaching such stuff. I've checked a few reference which talks something about how to interact with servers using get/post method, such as:
data=urllib.urlencode(values)
req=urllib2.Request(url, data)
response=urllib2.urlopen(req)
Don't know if I'm on the right way to solve the problem.
My project involves stuff like simulate links clicking and forms submitting etc, and I kind of want them to run in background which means no need to activate browsers such as IE or FF.
I guess it's "directly reading the site via python over the web", right? Sounds like it's harder than simulating a click event?
Is it a must to write a JavaScript engine? And would you mind shedding more light on how to do it?
Thanks a lot for your reply!