Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Python 执行 links2 以打开网页并找到并单击文本链接?
pexpect 能做到吗?任何例子都值得赞赏。
不知道你为什么要这样做。如果你想抓取网页链接并处理页面内容,urllib2和一个 HTML 解析器(例如BeautifulSoup)可能就可以了。
如果您确实想模拟鼠标点击,您可能需要使用AutoPy。
如果您想要 javascript 支持,请使用 selenium rc 和您喜欢的任何语言
为什么要使用links2?我不明白你怎么能从中受益。以不同的方式解决您的问题可能会更好,例如使用mechanize甚至twill。
请描述您的整体问题,而不是具体问题