Are There Any Alternatives To Mechanize In Python?
Solution 1:
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).
Solution 2:
For scraping and form handling you can use lxml.html (it doesn't automate fetching and cookies though).
scrapy is a library specifically for scraping.
Solution 3:
I've been successful with Splinter, a solution built on top of Selenium - while providing more pythonic API.
Solution 4:
I've used twill for a lot of my testing needs. It works as a stand-alone language for "web browsing" or as a library from Python. It actually uses Mechanize under the hood, so I'm not sure if it will meet your needs -- are you encountering problems intrinsic to Mechanize, or would you benefit from a high level layer?
Solution 5:
try zope.browser http://pypi.python.org/pypi?:action=display&name=zope.testbrowser
Post a Comment for "Are There Any Alternatives To Mechanize In Python?"