一千萬個為什麽

搜索

Python中的Mechanize有什麽替代品嗎?

我正在使用Python 3.6,而我必須填寫表格。不幸的是,機械化不適用於Python 3。 你有什麽建議作為機械化的替代品?

最佳答案

SeleniumRC with selenium.py is an alternative (and one of the few workable options if the pages you need to scrape have an important, "structural" role for Javascript operations, esp. AJAX-y ones, since Mechanize doesn't execute the Javascript on the pages it's scraping).

轉載註明原文: Python中的Mechanize有什麽替代品嗎?