Coder Social home page Coder Social logo

stanfortonski / tinder-bot Goto Github PK

View Code? Open in Web Editor NEW
43.0 8.0 17.0 111 KB

Tinder Bot 2021: Automate your likes and dislikes. Increase Match level.

Home Page: https://www.youtube.com/watch?v=9qsLttx5tMU

License: MIT License

Python 99.49% Batchfile 0.28% Shell 0.23%
tinder-swiper tinder-like tinder tinder-bot bot python-3 python-bot open-source selenium selenium-webdriver

tinder-bot's People

Contributors

shi-on avatar stanfortonski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tinder-bot's Issues

Google Login.

Hello, when i'm trying to open the bot and it's all fine until it trying to login Tinder Acc.
It "blocking" at language choose, could you help me ?

Trusting this python app?

HI how are we supposed to trust this app is actually for tinder, when the first thing it wants is our gmail (google) login account?
even still today TR works with just a gmail login opposed to a fb login (?) Is there some sort of sample you can post in the GITHUB asap which shows in video demo that guarantees the process directs towards TR with proper login for testing this for developer learning?

Bot gets stuck

Hello,

EDIT: using release 1.5

Thanks for your code, perfect for corona times! It got the facebook login working, but i run into another error.

the browser stops at this page.

tinderbot_issue

Kind regards,

Alex

C:\Users\alexy\AppData\Local\Programs\Python\Python39\python.exe C:/Users/alexy/PycharmProjects/Tinder-Bot/executable.py
=== TinderBot Start ===
=== Facebook Login ===
=== Tinder login ===
Traceback (most recent call last):
File "C:\Users\alexy\PycharmProjects\Tinder-Bot\executable.py", line 23, in
login.logIn()
File "C:\Users\alexy\PycharmProjects\Tinder-Bot\tinder\login\tinderlogin.py", line 37, in logIn
self.__closePopups()
File "C:\Users\alexy\PycharmProjects\Tinder-Bot\tinder\login\tinderlogin.py", line 77, in __closePopups
driver.find_element_by_xpath('/html/body/div[2]/div/div/div/div/div[3]/button[1]').click()
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: Element could not be scrolled into view

Process finished with exit code 1

Facebook login not working

Hello,

also the facebook login doesnt work in the latest version from github :( Browser gets stuck here

tinderbot_issue2

C:\Users\alexy\AppData\Local\Programs\Python\Python39\python.exe C:/Users/alexy/PycharmProjects/Tinder-Bot/executable.py
=== TinderBot Start ===
=== Facebook Login ===
Traceback (most recent call last):
File "C:\Users\alexy\PycharmProjects\Tinder-Bot\executable.py", line 23, in
login.logIn()
File "C:\Users\alexy\PycharmProjects\Tinder-Bot\tinder\login\tinderlogin.py", line 25, in logIn
self.methodLogin.logIn()
File "C:\Users\alexy\PycharmProjects\Tinder-Bot\tinder\login\facebooklogin.py", line 22, in logIn
driver.find_element_by_xpath('//[@id="u_0_d"]').submit()
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //
[@id="u_0_d"]

Process finished with exit code 1

Code can't find element by xpath, at disliking

The Bot is not working and after login it will reload the page after a while.

By executing, after successfull login the driver cant find an element. The line 50:
self.driver.find_element_by_xpath('/html/body/div[1]/div/div[1]/div/main/div[1]/div/div/div[1]/div/div[2]/div[2]/button').click()
returns an NoSuchElementException. If i execute the xpath manually inside firefox i will get an array with length of 0.

If i select the "dislike button" on the Tinder Webpage and click copy Xpath in the inspector from firefox and then do in the console a $x("/html/body/div[1]/div/div[1]/div/main/div[1]/div/div/div[1]/div[1]/div/div[4]/div/div[2]/button/span/span/svg/path") i will also get an array of the length of 0 . but why?? Why is it an empty array?

Steps to reproduce the behavior:

  1. Run the code on Linux with debugger turned on and step over until you reach line 50 that i write above.

Expected behavior
I expected that this find_element_by_xpath function should not fail.

Firefox version is 90.0 for Ubuntu

Problem

Podczas momentu, w którym program powinien się zalogować na tindera otrzymuję błąd:
"selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: /html/body/div[2]/div/div/div[1]/div/div[3]/span/div[2]/button"
Próbowałem na pythonie: 3.9.0 / 3.9.1 / 2.7.0.
Robię to na wersji bota 1.6.1

Tinder login

Dzięki nowej wersji program nie upada w momencie logowanie do tindera. Tym razem problemem jest okno, które potrzebuję interakcji.
ed064da1681ab5eaad06b0422306377a
Po tym oknie pojawia się błąd:
Error: Failed to login to Tinder. Check your data or try later.

Pozdrawiam oraz dziękuję za poświęcony czas.

sync_swipe_enabled: true , what means?

I found this parameter inside the API response when loading my profile

autoplay_video: "always"
top_picks_discoverable: true
photo_tagging_enabled: false
user_interests: {selected_interests: [],…}
recommended_sort_discoverable: true
selfie_verification: "not_verified"
noonlight_protected: false
sync_swipe_enabled: true

what the sync_swipe_enabled: true, means?

thanks

Bot doesn't start - JsonDecoder error

Hello, I think i have done every necessary step but i get this error:
File "executable.py", line 7, in <module> from tinder.login.tinderlogin import TinderLogin File "/home/asd/Downloads/Tinder-Bot-master/tinder/login/tinderlogin.py", line 6, in <module> from tinder.config import Config File "/home/asd/Downloads/Tinder-Bot-master/tinder/config.py", line 8, in <module> Config = json.load(file) File "/usr/lib/python3.8/json/__init__.py", line 293, in load return loads(fp.read(), File "/usr/lib/python3.8/json/__init__.py", line 357, in loads return _default_decoder.decode(s) File "/usr/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.8/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Invalid \escape: line 8 column 47 (char 202)
Running latest version in Ubuntu VM.
Thank you very much

Facebook Login

I tried Facebook login, but it didin't work either

C:\Users\D\Desktop\Tinder-Bot-master>python executable.py
=== TinderBot Start ===
=== Facebook Login ===
=== Tinder login ===
Traceback (most recent call last):
File "C:\Users\D\Desktop\Tinder-Bot-master\executable.py", line 23, in
login.logIn()
File "C:\Users\D\Desktop\Tinder-Bot-master\tinder\login\tinderlogin.py", line 33, in logIn
self.__logInViaFacebook()
File "C:\Users\D\Desktop\Tinder-Bot-master\tinder\login\tinderlogin.py", line 64, in __logInViaFacebook
button = driver.find_element_by_xpath('/html/body/div[2]/div/div/div[1]/div/div[3]/span/div[2]/button')
File "C:\Users\D\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Users\D\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\D\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\D\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: /html/body/div[2]/div/div/div[1]/div/div[3]/span/div[2]/button

Google Login not working

Hello,

EDIT: using the latest version from github, but same issue for 1.5

thanks for you programm! Sadly, for me the google login is not working. Not in the programm and not in the test. Maybe they changed something? The Broswer is opening and enters the username, but i get an error for the password (in german):

"""
Anmeldung nicht möglich
Dieser Browser oder diese App ist unter Umständen nicht sicher. Weitere Informationen
Verwenden Sie einen anderen Browser. Wenn Sie bereits einen unterstützten Browser nutzen, können Sie Ihren Bildschirm aktualisieren und noch einmal versuchen, sich anzumelden.
"""

It tells me that the Browser isnt safe.

kind regards,

Alex

Testing started at 19:36 ...
C:\Users\alexy\AppData\Local\Programs\Python\Python39\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm_jb_unittest_runner.py" --path C:/Users/alexy/PycharmProjects/Tinder-Bot/tests/googlelogin_test.py
Launching unittests with arguments python -m unittest C:/Users/alexy/PycharmProjects/Tinder-Bot/tests/googlelogin_test.py in C:\Users\alexy\PycharmProjects\Tinder-Bot\tests

=== Google Login ===

Error
Traceback (most recent call last):
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\unittest\case.py", line 59, in testPartExecutor
yield
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\unittest\case.py", line 593, in run
self._callTestMethod(testMethod)
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\unittest\case.py", line 550, in _callTestMethod
method()
File "C:\Users\alexy\PycharmProjects\Tinder-Bot\tests\googlelogin_test.py", line 23, in testLogin
self.gl.logIn()
File "..\tinder\login\googlelogin.py", line 24, in logIn
driver.find_element_by_css_selector('#password > div:first-child > div > div:first-child > input').send_keys(self.password)
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 598, in find_element_by_css_selector
return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\alexy\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: #password > div:first-child > div > div:first-child > input

Assertion failed

Ran 1 test in 9.755s

FAILED (errors=1)

Process finished with exit code 1

Assertion failed

Assertion failed

Like | Dislike Button: Could not be scrolled into view error

By executing i will get the following error after some time:

Traceback (most recent call last): File "/home/vm/Documents/TinderBot1.7/Tinder-Bot/app.py", line 28, in <module> bot.perform() File "/home/vm/Documents/TinderBot1.7/Tinder-Bot/tinder/tinderbot.py", line 28, in perform self.dislike() File "/home/vm/Documents/TinderBot1.7/Tinder-Bot/tinder/tinderbot.py", line 62, in dislike self.driver.find_element_by_xpath(button).click() File "/home/vm/Documents/TinderBot1.7/Tinder-Bot/.venv/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click self._execute(Command.CLICK_ELEMENT) File "/home/vm/Documents/TinderBot1.7/Tinder-Bot/.venv/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute return self._parent.execute(command, params) File "/home/vm/Documents/TinderBot1.7/Tinder-Bot/.venv/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/home/vm/Documents/TinderBot1.7/Tinder-Bot/.venv/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementNotInteractableException: Message: Element <button class="bullet D(ib) Va(m) Cnt($blank)::a D(b)::a Cur(p) bullet--active H(4px)::a W(100%)::a Py(4px) Px(2px) W(100%) Bdrs(100px)::a Bgc(#fff)::a focus-background-style"> could not be scrolled into view

This happens for example in line 61 self.driver.find_element_by_xpath(button).click()
My untested rough solution: we first have to wait for the element until its clickabale.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.