garmin icon indicating copy to clipboard operation
garmin copied to clipboard

Move away from mechanize

Open magsol opened this issue 8 years ago • 6 comments

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 avatar Sep 21 '16 18:09 magsol

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

magsol avatar Dec 28 '16 14:12 magsol

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

EjeWGU avatar Jul 03 '17 18:07 EjeWGU

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

magsol avatar Jul 05 '17 20:07 magsol

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

magsol avatar Jul 05 '17 20:07 magsol

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

eli-schwartz avatar Jan 10 '19 06:01 eli-schwartz

Woohoo! Can finally make these scripts fully Python 3.

In my spare time, of course...

magsol avatar Jan 10 '19 15:01 magsol