Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

My goal is to reset the password of my tiktok accounts every x days, my though process started with how can i reset the password of my tiktok account using the email. I wrote a code that take the email I have from a txt file full of all my accounts emails. The problem is every time I try to reset my account it shows " You are trying to use our service too frequently. This only happens when i am on a selenium browser, it works fine on normal browsers. I tried playing with the UserAgents, tried the $csh removal from the chrome driver but no solution

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time

#iniatialization of the driver
options = webdriver.ChromeOptions()

options.add_argument(f'user-agent=Googlebot')


browser = webdriver.Chrome(chrome_options=options)
#puts all the links into a username
with open('list.txt', 'r') as f:
    emails = [line.strip() for line in f]


for email in emails:
    browser.get('https://www.tiktok.com/login/email/forget-password')
    time.sleep(2)
    inputEmail= browser.find_element_by_xpath('//*[@id="root"]/div/div[1]/form/div[2]/div/input')
    inputEmail.send_keys(str(email))
    browser.find_element_by_xpath('//*[@id="root"]/div/div[1]/form/div[3]/button').click()
    time.sleep(1)
    #didnt continue the code because this was not working 

what could be a possible solution?

question from:https://stackoverflow.com/questions/65645299/being-detected-using-selenium-with-reset-password-tiktok-python

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
691 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...