tags:

views:

49

answers:

3

How can I execute links2 to open a web page and locate and click a text link with Python?

Is pexpect able to do it? Any examples are appreciated.

A: 

Why do you want to use links2? I don't see how you could benefit from that. It is probably better to approach your problem in a different way, like with mechanize or maybe even twill.

Please provide a description of your overall problem instead of that specific question

nosklo
Links2 is more like a real browser which supports Javascript.
jack
+1  A: 

Not sure why you want to do this. If you want to grab the web link and process the page content, urllib2 together with an HTML parser (BeautifulSoup for example) may be just fine.

If you do want to simulate moust clicks, you may want to use AutoPy.

Wang Dingwei
A: 

if you want javascript support use selenium rc with whatever language you are comfortable with

amadain