I was a fond user of the Mechanize library, but unfortunately it's incompatible with Python 3 and development is inactive. MechanicalSoup provides a similar API, built on Python giants Requests (for http sessions) and BeautifulSoup (for document navigation).
不。虽然它们有一些相同的功能,但它们绝对不一样。Mechanize似乎比请求具有更多的特性。Mechanize能够“解决”页面上的表单,其中请求更多的只是提取页面的原始HTML或与web API交互。对于获取此功能的请求,需要另一个库。可以用MechanicalSoup替换Mehchanize。实际上,创建者启动了MechanicalSoup,因为Mechanize还没有移植到3.*中。在
相关问题 更多 >
编程相关推荐