stanfortonski / tinder-bot Goto Github PK
View Code? Open in Web Editor NEWTinder Bot 2021: Automate your likes and dislikes. Increase Match level.
Home Page: https://www.youtube.com/watch?v=9qsLttx5tMU
License: MIT License
Tinder Bot 2021: Automate your likes and dislikes. Increase Match level.
Home Page: https://www.youtube.com/watch?v=9qsLttx5tMU
License: MIT License
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 ?
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?
It doesn't work at all? Please help me fix this.
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.
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
Hello,
also the facebook login doesnt work in the latest version from github :( Browser gets stuck here
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
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:
Expected behavior
I expected that this find_element_by_xpath function should not fail.
Firefox version is 90.0 for Ubuntu
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
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
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
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
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
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.
or need also other parameters? doesn't get the account banned if missing some parameters?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.