Automate TINDER with Python tutorial

///Automate TINDER with Python tutorial

Automate TINDER with Python tutorial

FavoriteLoadingAdd to favorites

Hope you got something out of this, and it was at least entertaining.
If not, at least it was short 😉

Built with Python, Selenium, and Google Chrome.
We use web scraping patterns + a finite state machine.

Here’s the code:

Fork, add some features, and @ me

Also if you ever get the “can’t find element error”, try adding a sleep(1) to wait for the page to load, or re-copy the xpath (html may have changed)

====================================================================
If you like my style of explaining, I’ve got an algorithms course for coding interviews
====================================================================

========================================
Here are some solid Python Courses from Udemy
========================================
Python for Beginners

Python for Automation

Python for Finance / Data Analysis

(note these are affiliate links, same price for you but I may make a little $)

Social Media for what I’m up to:

source

By |2020-11-15T10:40:40+00:00November 15th, 2020|Python Video Tutorials|42 Comments

42 Comments

  1. Aaron Jack November 15, 2020 at 10:40 am - Reply

    I put this bot to the test in my next video, check it out here:
    https://youtu.be/6u0OZqrtYac

  2. Joseph Parkes November 15, 2020 at 10:40 am - Reply

    Was anyone else not able to finish this because there were no matches to test on?

  3. Alex Maza November 15, 2020 at 10:40 am - Reply

    What font do you use?

  4. Aaron Dull November 15, 2020 at 10:40 am - Reply

    SOCIOPATH

  5. Ira Sanchez November 15, 2020 at 10:40 am - Reply

    This was really well done, thank you.

  6. Zoltán Szabó November 15, 2020 at 10:40 am - Reply

    Hi!

    I've got some issues while tried to create the first instance of the bot, right after you wrote the first 5 lines of your code. Could you help me with this?
    Here is the error message (using windows):
    >>> bot = TinderBot()

    Traceback (most recent call last):

    File "<stdin>", line 1, in <module>

    NameError: name 'TinderBot' is not defined

  7. Nm Al- Mamun November 15, 2020 at 10:40 am - Reply

    you say that webdriver file move to user/local/bin but it's processed only mac os / Linux. if I use windows where I move webdriver?

  8. Donald Dang November 15, 2020 at 10:40 am - Reply

    Good thing I get no likes, so I don't have to write the last little bit of code :')

  9. LittleR0124 November 15, 2020 at 10:40 am - Reply

    This is cool and all, but to get the Xpath to exit out the 'like' pop-up, I'll have to get a 'like'. And given that I'm trying to build a bot to automate my Tinder, this project doesn't seem to be happening for me any time soon

  10. enad alotaibi November 15, 2020 at 10:40 am - Reply

    I just remembered Walter O'Brian lol

  11. admtech69 November 15, 2020 at 10:40 am - Reply

    Can you install this on a Windows machine?

  12. Ardelia Resto November 15, 2020 at 10:40 am - Reply

    "1:12"
    When someone wish somthing only use WY7m.omir.uno
    It is fascinating on all devices! axx

    සෑම කෙනෙකුටම පරිපූර්ණ ක්රමය

  13. Animesh Singh November 15, 2020 at 10:40 am - Reply

    Video should've been just 3 minutes or less

  14. braindebugg November 15, 2020 at 10:40 am - Reply

    Tinder put overlay on their login page, so the bot can no longer log in:(

  15. Bernardo Hermes November 15, 2020 at 10:40 am - Reply

    chromedriver dont let me type nothing on himmm

  16. MK Bhoir November 15, 2020 at 10:40 am - Reply

    when ever i try to create instance of the class like

    >>> mb = Meetbot()

    Traceback (most recent call last):

    File "C:UsersbmokssourceGoogle Meet BOTvenvlibsite-packagesseleniumwebdrivercommonservice.py", line 72, in start

    self.process = subprocess.Popen(cmd, env=self.env,

    File "c:usersbmoksappdatalocalprogramspythonpython38libsubprocess.py", line 854, in _init_

    self._execute_child(args, executable, preexec_fn, close_fds,

    File "c:usersbmoksappdatalocalprogramspythonpython38libsubprocess.py", line 1307, in _execute_child

    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

    FileNotFoundError: [WinError 2] The system cannot find the file specified

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

    File "<stdin>", line 1, in <module>

    File "gmbot.py", line 5, in _init_

    File "C:UsersbmokssourceGoogle Meet BOTvenvlibsite-packagesseleniumwebdriverchromewebdriver.py", line 73, in _init_

    self.service.start()

    File "C:UsersbmokssourceGoogle Meet BOTvenvlibsite-packagesseleniumwebdrivercommonservice.py", line 81, in start

    raise WebDriverException(

    selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

    THIS ERROR OCCURS

  17. Debjit Chattopadhyay November 15, 2020 at 10:40 am - Reply

    i have been trying to find the facebook button with it's xpath
    but every time it gives and error no such element exists
    tried copying the xpath again
    nothing worked ….
    Please help

  18. dijubito November 15, 2020 at 10:40 am - Reply

    Anyone knows where to find some tutorials or info on how to program bots to interact with websites?

  19. Walied Ahmed November 15, 2020 at 10:40 am - Reply

    I liked that you modeled that with an FSA! Subscribed.

  20. Plot November 15, 2020 at 10:40 am - Reply

    u could've just used their API smh

  21. Reynadi Andreas Priesley November 15, 2020 at 10:40 am - Reply

    Well if this guy train tensorflow to swipe the right person he will be a godfather of tinder

  22. Sadguru November 15, 2020 at 10:40 am - Reply

    But nowadays tinder doesn't use a password. It uses the OTP method for sign in.

  23. Mohamed Oubella November 15, 2020 at 10:40 am - Reply

    what color theme / font do u use for VSCODE? its' beautiful

  24. david campbell November 15, 2020 at 10:40 am - Reply

    Has anyone else said you look like the guy in Arrow

  25. parth joshi November 15, 2020 at 10:40 am - Reply

    This is awesome dude!

  26. Michael Johann November 15, 2020 at 10:40 am - Reply

    this screams tensorflow or scikit-learn

  27. Max Runyon November 15, 2020 at 10:40 am - Reply

    You shoulda really blurred the girls faces

  28. prov UNITY November 15, 2020 at 10:40 am - Reply

    NOT WORKING @AARONJACK

  29. prov UNITY November 15, 2020 at 10:40 am - Reply

    selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/*[@id="content"]/div/div[1]/div/div/main/div/div[2]/div[2]/div/div/span/div[2]/button"}

  30. prov UNITY November 15, 2020 at 10:40 am - Reply

    selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/*[@id="content"]/div/div[1]/div/div/main/div/div[2]/div[2]/div/div/span/div[2]/button"}

  31. prov UNITY November 15, 2020 at 10:40 am - Reply

    selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/*[@id="content"]/div/div[1]/div/div/main/div/div[2]/div[2]/div/div/span/div[2]/button"}

  32. prov UNITY November 15, 2020 at 10:40 am - Reply

    selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/*[@id="content"]/div/div[1]/div/div/main/div/div[2]/div[2]/div/div/span/div[2]/button"}

  33. prov UNITY November 15, 2020 at 10:40 am - Reply

    selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/*[@id="content"]/div/div[1]/div/div/main/div/div[2]/div[2]/div/div/span/div[2]/button"}

  34. prov UNITY November 15, 2020 at 10:40 am - Reply

    selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/*[@id="content"]/div/div[1]/div/div/main/div/div[2]/div[2]/div/div/span/div[2]/button"}

  35. prov UNITY November 15, 2020 at 10:40 am - Reply

    Could someone the hell fix the code https://github.com/aj-4/tinder-swipe-bot

  36. bramgrin November 15, 2020 at 10:40 am - Reply

    how do you get the vs code editor?

  37. Babu Singh Birdi November 15, 2020 at 10:40 am - Reply

    Hi, i have an issue while coding the same. Sometime, during logged in tinder won't show login with FB option directly and it will be under more option link. So anyone can help me out to handle both possibility?

  38. Rohit November 15, 2020 at 10:40 am - Reply

    This guy doesn't need a bot

  39. Elliot Gertner November 15, 2020 at 10:40 am - Reply

    Had a lot of problems on MACOS in getting Python, pip, npm, Webdriver, etc versions right… Your video is slightly incompatible with the latest, so I tried google searches that present a bewildering variety of issues on Python 2.7 which is still the default on MAC, Python 3.8, etc. I don't care about the debates on brew, pip, npm, etc…. A SIMPLE video that shows how to install it all would be great. How about it Jack? make a SIMPLE video that shows how to install it all from scratch?

  40. Tridoshic 1 November 15, 2020 at 10:40 am - Reply

    What is the purpose of moving the chromedriver to usr/local/bin? Where does this need to be moved in windows? Sorry I"m new to python and linux.

  41. Powerpuff Girl Talks About Tech November 15, 2020 at 10:40 am - Reply

    Thats an awesome tutorial and Love Coffee

  42. Riley H November 15, 2020 at 10:40 am - Reply

    Damn, I learned a lot from this. I often use the select by ID but select by xpath seems solid. I also didn't know about the interactive mode.

Leave A Comment

*