Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/add phone login #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bitnahian
Copy link

  • Added phone login capabilities
  • Changed readme

@Matduke
Copy link

Matduke commented Jul 27, 2020

I have this problem when I run it with phone option login:

How would you like to login?
1. Phone
2. Email?
1
Traceback (most recent call last):
File "tinder_bot.py", line 112, in
bot.menu()
File "tinder_bot.py", line 80, in menu
self.loginPhone()
File "tinder_bot.py", line 14, in loginPhone
fb_btn = self.driver.find_element_by_xpath('//[@id="modal-manager"]/div/div/div/div/div[3]/div[1]/button')
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//
[@id="modal-manager"]/div/div/div/div/div[3]/div[1]/button"}
(Session info: chrome=85.0.4183.38)

And the bot was blocked.. :/
Any solutions ?

@bitnahian
Copy link
Author

Hey, this is a pretty old pull request and Tinder would potentially have renewed/changed their UI elements. So, this probably wouldn't work unless you change some of the find queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants