nang-dev / tinderbot

MIT License
36 stars 10 forks source link

I am not getting the otp on my phone #2

Open ramola106 opened 4 years ago

ramola106 commented 4 years ago

I run in debug mode The response is send_otp_code : {'meta': {'status': 200}, 'data': {'otp_length': 6, 'sms_sent': False}}

DioLorenzo commented 4 years ago

Same I run phone_auth_token.py and SMS doesn't work

FO777 commented 3 years ago

was able to pass the original issue of not being able to acquire OTP to send:

from selenium import webdriver from selenium.webdriver.common.keys import Keys import time import os

def send_otp_code(phone_number): data = {'phone_number': phone_number} bot = webdriver.Chrome(chromeDriver)

get tinder page

bot.get('https://tinder.com/')
#pause for 3 seconds to let everything load up
time.sleep(3)
#find the login button and click it
bot.find_element_by_xpath('//*[@id="content"]/div/div[1]/div/main/div[1]/div/div/header/div[1]/div[2]/div/button').click()
time.sleep(3)
# click login in by phone
bot.find_element_by_xpath('//*[@id="modal-manager"]/div/div/div[1]/div/div[3]/span/div[3]/button').click()
time.sleep(3)
#grabs the class name of the email box
email = bot.find_element_by_xpath('//*[@id="modal-manager"]/div/div/div[1]/div[2]/div/input')
#enters in username/email
email.send_keys(phone_number)
# press return to pass to next phase
email.send_keys(Keys.RETURN)
time.sleep(3)
bot.close()
bot.quit()

ok but now we face this issue: 61 refresh_token = get_refresh_token(otp_code, phone_number) 47 if(response.get("data")["validated"] == False): TypeError: 'NoneType' object is not subscriptable

i believe tinder has changed the way they do requests

frederikme commented 3 years ago

If you're looking for an up-to-date tinderbot which doesn't use the api of Tinder, but rather uses selenium as an automation tool, this might be of interest: https://github.com/frederikme/TinderBot

Note: this is my own project, but it looks like this project is not supported anymore and should be archived.