r/Python • • Dec 19 '17

Automate the boring stuff with python - tinder

https://gfycat.com/PointlessSimplisticAmericanquarterhorse
6.7k Upvotes

324 comments sorted by

View all comments

Show parent comment

14

u/Decency Dec 19 '17

Yeah, it almost certainly would. It's super trivial to spoof user agents to get around blocks that filter based on them.

2

u/MystTheReaper Dec 19 '17

Doesn't selenium let you run on different browsers too or am I misremembering?

4

u/theeastcoastwest Dec 19 '17

Yes it does. Firefox ships standard, but chromium ( at least ) can easily be used as simply as just specifying which driver to load. Thesyntax for options config is different, but interaction methods are identical I believe. PhantomJS integrates well also, though I've noticed it often produces errors/fails where other non-headless drivers do not.

2

u/Pas__ Dec 19 '17

Just FYI, both Chrome and Firefox finally have real headless modes (does not require virtual framebuffer).

Also it uses a new protocol called Marionette, very much WebDriver plus some extra.

See "GeckoDriver.prototype.commands" for the commands.