garmin
garmin copied to clipboard
Move away from mechanize
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:
- urllib2
- python requests
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.
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
I think the aforementioned MechanicalSoup may be the way forward. urllib and requests are too low-level.
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.
FWIW the python3 port was just now finished in mechanize master.
Woohoo! Can finally make these scripts fully Python 3.
In my spare time, of course...