Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move away from mechanize #11

Open
magsol opened this issue Sep 21, 2016 · 6 comments
Open

Move away from mechanize #11

magsol opened this issue Sep 21, 2016 · 6 comments

Comments

@magsol
Copy link
Owner

magsol commented Sep 21, 2016

The mechanize library used in this package has not been updated in over four years. Problems are cropping up that are not likely to be fixed soon, if ever.

Possible alternatives:

@magsol
Copy link
Owner Author

magsol commented Dec 28, 2016

Found MechanicalSoup, which uses the aforementioned Requests library underneath in addition to BeautifulSoup for parsing of HTML. Commit faaf605 is the first attempt to integrate it, in lieu of the original mechanize library.

@EjeWGU
Copy link

EjeWGU commented Jul 3, 2017

Some alternative for Python 3? Mechanize only works on 2.x
I tried to do it myself with RoboBrowser but my python level is not enough for it

@magsol
Copy link
Owner Author

magsol commented Jul 5, 2017

I think the aforementioned MechanicalSoup may be the way forward. urllib and requests are too low-level.

@magsol
Copy link
Owner Author

magsol commented Jul 5, 2017

Getting mechanize on Python 3 is the literally the only ticket they have open right now: python-mechanize/mechanize#9 But judging from the maintainers it sounds like getting it fully Py3-compatible will take quite a bit of work.

@eli-schwartz
Copy link

FWIW the python3 port was just now finished in mechanize master.

@magsol
Copy link
Owner Author

magsol commented Jan 10, 2019

Woohoo! Can finally make these scripts fully Python 3.

In my spare time, of course...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants