擅长:python、mysql、java
<p>我认为你应该看看<a href="http://wwwsearch.sourceforge.net/mechanize/" rel="nofollow">Mechanize</a>项目。它是Python中的一个有状态浏览器,因此您可以轻松地提交这种性质的表单和内容,并维护会话。然后使用<a href="http://lxml.de/lxmlhtml.html" rel="nofollow">lxml.html</a>或<a href="http://www.crummy.com/software/BeautifulSoup/" rel="nofollow">BeautifulSoup</a>检查文档(尽管Mechanize本身包含一些检查文档的工具)。</p>