Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any alternatives to Mechanize in Python? [closed]

Tags:

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?

like image 886
user319723 Avatar asked Apr 18 '10 15:04

user319723


People also ask

Does mechanize work with Python 3?

unfortunately mechanize only works with Python 2.4, Python 2.5, Python 2.6, and Python 2.7.

What is mechanize in Python?

Browsing with Mechanize The mechanize module in Python is similar to perl WWW:Mechanize. It gives you a browser like object to interact with web pages.

Does mechanize support JavaScript?

mechanize does not provide any support for JavaScript.


1 Answers

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

like image 141
Alex Martelli Avatar answered Oct 12 '22 16:10

Alex Martelli