Python’s standard urllib2 module provides most of the HTTP
capabilities you need, but the API is thoroughly broken. It was built
for a different time — and a different web. It requires an enormous
amount of work (even method overrides) to perform the simplest of
tasks.
你也可以看看mechanize。它的目的是处理“有状态的编程式web浏览”(根据他们的站点)。
所有的答案都是旧的,我推荐,我是requests的忠实粉丝
从主页:
selenium将完全按照您的要求执行,并处理javascript
相关问题 更多 >
编程相关推荐