【发布时间】:2021-11-14 02:23:41
【问题描述】:
有没有办法绕过谷歌电话号码验证来创建帐户?我已经写了几行 Python 代码来创建一个 google 帐户...有没有什么方法可以创建一个临时的 Python 电话号码来接收短信之类的消息?
代码
ctr_btn = driver.find_element_by_xpath("//*[@id='view_container']/div/div/div[2]/div/div[2]/div/div[2]/div/div/div[1]/div/button/span")
ctr_btn.click()
time.sleep(0.07)
myself_ctr = driver.find_element_by_xpath("//*[@id='view_container']/div/div/div[2]/div/div[2]/div/div[2]/div/div/div[2]/div/ul/li[1]")
myself_ctr.click()
ftr_name = driver.find_element_by_xpath("//*[@id='firstName']")
ftr_name.send_keys("Anon")
lst_name = driver.find_element_by_xpath("//*[@id='lastName']")
lst_name.send_keys("Anon")
cng_email = driver.find_element_by_xpath("//*[@id='view_container']/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[2]/div[3]/div/div/button/span")
cng_email.click()
email_txt_box = driver.find_element_by_xpath("//*[@id='username']")
email_txt_box.send_keys(ran)
passwd_one = driver.find_element_by_xpath("//*[@id='passwd']/div[1]/div/div[1]/input")
passwd_one.send_keys(passwd)
passwd_confirm = driver.find_element_by_xpath("//*[@id='confirm-passwd']/div[1]/div/div[1]/input")
passwd_confirm.send_keys(passwd)
next_form = driver.find_element_by_xpath("//*[@id='accountDetailsNext']/div/button/span")
next_form.click()
模块
import os, sys, time
import base64
from selenium import webdriver
from selenium_stealth import stealth
import random
import string
【问题讨论】:
标签: python selenium selenium-webdriver