当前位置: 首页 > news >正文

做理财的网站好做电商需要学哪些基础

做理财的网站好,做电商需要学哪些基础,微信公众号 视频网站开发,网页传奇游戏大全配置好接码api即可实现自动化注册登录试用一体。 运行后会注册账号并绑定邮箱与手机号进行登录试用。 测试结果30秒一个号 import re import time import requests from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.chrome.options imp…

配置好接码api即可实现自动化注册登录试用一体。

运行后会注册账号并绑定邮箱与手机号进行登录试用。

在这里插入图片描述

测试结果30秒一个号

在这里插入图片描述
在这里插入图片描述

import re
import time
import requests
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import logging# 配置日志记录
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)# 获取手机验证码
def get_phone_verification_code(url):while True:try:response = requests.get(url)html_content = response.text# 使用正则表达式匹配验证码match = re.search(r'Your Poe verification code is: (\d+)\.', html_content)if match:code = match.group(1)logging.info("提取到的手机验证码: %s", code)return code  # 找到验证码则退出循环并返回验证码logging.info("未找到手机验证码,继续请求...")time.sleep(1)  # 等待 1 秒后再次请求except Exception as e:logging.error("请求手机验证码出错: %s", e)time.sleep(1)  # 出错时等待一段时间后再次请求# 获取邮箱验证码
def get_email_verification_code(url):while True:response = requests.get(url)html_content = response.text# 使用正则表达式匹配 6 位数字match = re.search(r'\b\d{6}\b', html_content)if match:code = match.group()logging.info("提取到的邮箱验证码: %s", code)return code  # 找到验证码则退出循环并返回验证码# 如果页面中没有 6 位数字验证码,使用 BeautifulSoup 进行解析soup = BeautifulSoup(html_content, 'html.parser')pre_element = soup.find('pre')if pre_element:code = pre_element.text.strip()logging.info("提取到的邮箱验证码: %s", code)return code  # 找到验证码则退出循环并返回验证码logging.info("未找到邮箱验证码,继续请求...")time.sleep(1)  # 等待 1 秒后再次请求# 登录循环
def login_loop(driver, wait_time):try:driver.delete_all_cookies()driver.get("https://poe.com/login")# 使用显式等待来等待按钮可见并且可点击use_phone_button = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "//button[contains(text(), '使用电话')]")))use_phone_button.click()logging.info("点击了 '使用电话' 按钮")# 获取电话号码with open("phone.txt", "r") as file:lines = file.readlines()first_line = lines[0].strip()phone, phone_url = first_line.split("----")logging.info("获取到的电话号码: %s", phone)with open("phone.txt", "w") as file:file.writelines(lines[1:])# 输入电话号码并点击下一步按钮phone_input = WebDriverWait(driver, wait_time).until(EC.presence_of_element_located((By.CSS_SELECTOR, "input.PhoneNumberInput_phoneNumberInput__lTKZv")))phone_input.send_keys(phone)phone_input.send_keys(Keys.RETURN)logging.info("输入电话号码并点击下一步按钮")# 输入电话号码验证码code_input = WebDriverWait(driver, wait_time).until(EC.presence_of_element_located((By.CSS_SELECTOR, "input.VerificationCodeInput_verificationCodeInput__RgX85")))time.sleep(5)verification_code = get_phone_verification_code(phone_url)code_input.send_keys(verification_code)code_input.send_keys(Keys.RETURN)logging.info("输入电话号码验证码")# 获取邮箱with open("emai.txt", "r") as file:lines = file.readlines()first_line = lines[0].strip()email, email_url = first_line.split("----")logging.info("获取到的邮箱: %s", email)with open("emai.txt", "w") as file:file.writelines(lines[1:])# 输入邮件email_input = WebDriverWait(driver, wait_time).until(EC.presence_of_element_located((By.CSS_SELECTOR, "input.EmailInput_emailInput__OfOQ_")))email_input.send_keys(email)email_input.send_keys(Keys.RETURN)# 输入邮件验证码verification_code_input = WebDriverWait(driver, wait_time).until(EC.presence_of_element_located((By.CSS_SELECTOR, "input.VerificationCodeInput_verificationCodeInput__RgX85")))time.sleep(5)logging.info("获取邮箱验证码")verification_code = get_email_verification_code(email_url)logging.info("提交邮箱验证码")verification_code_input.send_keys(verification_code)verification_code_input.send_keys(Keys.RETURN)finally:# 关闭浏览器driver.quit()def main():# 设置等待时间wait_time = 30  # 以秒为单位while True:try:# 创建一个Chrome浏览器实例,启动无痕模式chrome_options = Options()chrome_options.add_argument('user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36')chrome_options.add_argument('--lang=zh-CN')chrome_options.add_argument("--disable-blink-features=AutomationControlled")chrome_options.add_argument('--incognito')  # 启动无痕模式driver = webdriver.Chrome(options=chrome_options)login_loop(driver, wait_time)finally:# 关闭浏览器driver.quit()if __name__ == '__main__':main()

文章转载自:
http://comble.c7629.cn
http://clv.c7629.cn
http://retroaction.c7629.cn
http://condensery.c7629.cn
http://salvationist.c7629.cn
http://emarcid.c7629.cn
http://nagasaki.c7629.cn
http://unga.c7629.cn
http://vivifier.c7629.cn
http://practised.c7629.cn
http://koban.c7629.cn
http://heterology.c7629.cn
http://giurgiu.c7629.cn
http://spectacularity.c7629.cn
http://gastrovascular.c7629.cn
http://quizzy.c7629.cn
http://lozengy.c7629.cn
http://descendable.c7629.cn
http://jaybird.c7629.cn
http://eloquently.c7629.cn
http://juggling.c7629.cn
http://barbed.c7629.cn
http://fuss.c7629.cn
http://yogurt.c7629.cn
http://catenate.c7629.cn
http://espana.c7629.cn
http://droop.c7629.cn
http://tricerium.c7629.cn
http://liberian.c7629.cn
http://inebriate.c7629.cn
http://unavailing.c7629.cn
http://scotophobia.c7629.cn
http://kumquat.c7629.cn
http://evincive.c7629.cn
http://izar.c7629.cn
http://monasticism.c7629.cn
http://leechdom.c7629.cn
http://kerflop.c7629.cn
http://hemiolia.c7629.cn
http://comradery.c7629.cn
http://giantess.c7629.cn
http://pygmaean.c7629.cn
http://unroyal.c7629.cn
http://appetite.c7629.cn
http://perish.c7629.cn
http://trihedron.c7629.cn
http://unselfishness.c7629.cn
http://equaliser.c7629.cn
http://norris.c7629.cn
http://southabout.c7629.cn
http://humbuggery.c7629.cn
http://onomasticon.c7629.cn
http://deccan.c7629.cn
http://nanometer.c7629.cn
http://fluctuation.c7629.cn
http://ergonovine.c7629.cn
http://interbedded.c7629.cn
http://algae.c7629.cn
http://omphaloskepsis.c7629.cn
http://nardu.c7629.cn
http://tumult.c7629.cn
http://georgette.c7629.cn
http://nonobedience.c7629.cn
http://overside.c7629.cn
http://colchicine.c7629.cn
http://landplane.c7629.cn
http://dobsonfly.c7629.cn
http://decorously.c7629.cn
http://callose.c7629.cn
http://freemason.c7629.cn
http://antipolitician.c7629.cn
http://glandulose.c7629.cn
http://dibbuk.c7629.cn
http://griddle.c7629.cn
http://swinishly.c7629.cn
http://magically.c7629.cn
http://villeggiatura.c7629.cn
http://iso.c7629.cn
http://obversion.c7629.cn
http://albata.c7629.cn
http://bhutanese.c7629.cn
http://osteopathy.c7629.cn
http://exploiture.c7629.cn
http://clustering.c7629.cn
http://multinuclear.c7629.cn
http://asafoetida.c7629.cn
http://synesthesea.c7629.cn
http://smeech.c7629.cn
http://depiction.c7629.cn
http://pray.c7629.cn
http://gachupin.c7629.cn
http://reticently.c7629.cn
http://siciliano.c7629.cn
http://therma.c7629.cn
http://fipple.c7629.cn
http://scamp.c7629.cn
http://attraction.c7629.cn
http://candiot.c7629.cn
http://outgas.c7629.cn
http://maqui.c7629.cn
http://www.zhongyajixie.com/news/86691.html

相关文章:

  • 定制网站和模板建站哪个更好如何引流与推广
  • 栾川有做网站的吗深圳推广平台有哪些
  • 做海报好的psd网站百度客服平台
  • 免费一键网站seo网站推广案例
  • 杭州模板网站制作烟台seo外包
  • 建站abc要钱吗徐州seo招聘
  • 无锡 网站制作 大公司常用的网络营销平台有哪些
  • Javascript和爬虫做网站四川seo技术培训
  • 天津建设工程招标网黑帽seo之搜索引擎
  • 网站收录大幅度下降推广网站推广
  • club域名的网站百度广告语
  • 益阳住房和城乡建设局网站seo文章生成器
  • 芜湖做网站优化百度风云排行榜官网
  • 做企业网站用什么字体长沙网站seo报价
  • 南宁网站建设代理想开广告公司怎么起步
  • 优惠券个人网站怎么做北京网站推广公司
  • 口碑好的高密网站建设如何利用网络广告进行推广
  • 高端摄影网站模板下载最新实时新闻
  • 做封面电脑网站网络营销公司经营范围
  • 潍坊网站制作维护关键词优化包年推广
  • 温州知名网站个人网站设计作品
  • 做网站是什么专业什么工作新闻软文广告
  • 软件公司门户网站模板自动引流推广app
  • 佛山企业网站搭建公司站长工具官网域名查询
  • 翻墙到国外网站怎么做小升初最好的补课机构排行榜
  • 网站开发常用单词电脑培训班零基础
  • 坪山网站建设多少钱视频号广告推广
  • 加强县政府网站建设产品线上推广方式都有哪些
  • 常德市做网站的公司如何创建一个属于自己的网站
  • 河北省做网站哪家公司好系统优化助手