擅长:python、mysql、java
<p>为什么不直接使用Python来模拟浏览器,解析HTML并根据需要构建适当的HTTP请求呢?在</p>
<p>一个快速的<a href="http://www.google.com/search?client=safari&rls=en&q=python+simulate+browser&ie=UTF-8&oe=UTF-8" rel="nofollow noreferrer">google</a>会产生以下结果:</p>
<ul>
<li><a href="http://www.packtpub.com/article/web-scraping-with-python" rel="nofollow noreferrer">http://www.packtpub.com/article/web-scraping-with-python</a></li>
<li><a href="https://stackoverflow.com/questions/1419357/scraping-simulate-browsing-help">scraping/simulate browsing help</a></li>
<li><a href="http://stockrt.github.com/p/emulating-a-browser-in-python-with-mechanize/" rel="nofollow noreferrer">http://stockrt.github.com/p/emulating-a-browser-in-python-with-mechanize/</a></li>
<li><a href="http://code.activestate.com/recipes/572202-web-browser-emulator/" rel="nofollow noreferrer">http://code.activestate.com/recipes/572202-web-browser-emulator/</a></li>
</ul>