Are there any alternatives to Mechanize in Python?

user319723 picture user319723 · Apr 18, 2010 · Viewed 19.2k times · Source

I'm using Python 3.6 while I have to fill in a form. Unfortunately, mechanize doesn't work on Python 3. What do you suggest as an alternative to mechanize?

Answer

Alex Martelli picture Alex Martelli · Apr 18, 2010

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).