4 ms·
I prefer to use python-mechanize for this kind of “automate a human clicking their way through a web flow to do some stuff” work. It’s most useful for web page
by loloquwowndueo 6y ago
I prefer to use python-mechanize for this kind of “automate a human clicking their way through a web flow to do some stuff” work. It’s most useful for web page scraping but it would also work on this scenario - EXCEPT if the site in question relies on JavaScript to work, as mechanize can’t handle that.
Selenium sounds like a good alternative if JavaScript is required, but it is more involved to set up and more resource-intensive. I didn’t see mention of whether the author looked into using mechanize, but it would have been an interesting thing to consider.
- kellyfoulk 6y agoI wasn't aware of python-mechanize, but I do seem to recall that the website in question relies on Javascript. Thanks for the suggestion!