开发者

How to control links2 with Python

开发者 https://www.devze.com 2023-01-12 10:52 出处:网络
How can I execute links2 to o开发者_如何学JAVApen a web page and locate and click a text link with Python?

How can I execute links2 to o开发者_如何学JAVApen a web page and locate and click a text link with Python?

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


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.


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


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

0

精彩评论

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

关注公众号