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

基于php的网站开发流程图网络营销策划创意案例点评

基于php的网站开发流程图,网络营销策划创意案例点评,网页游戏开服表265,瓷器网站源码概述 python模拟登录平台,遇见验证码识别!用最简单的方法seleniumda破解验证码,来自动登录平台 详细 python用seleniumxpath模拟登录破解验证码 先随便找个小说平台用户登陆 - 书海小说网用户登陆 - 书海小说网用户登陆 - 书海小说网 准…
  • 概述

python模拟登录平台,遇见验证码识别!用最简单的方法selenium+da破解验证码,来自动登录平台

详细

python用selenium+xpath模拟登录+破解验证码

先随便找个小说平台
用户登陆 - 书海小说网用户登陆 - 书海小说网用户登陆 - 书海小说网

准备工作

selenium这个模块要用到驱动浏览器,我的是火狐浏览器,win10x64位的,所以我下载了最新版本,

https://github.com/mozilla/geckodriver/releases/download/v0.20.1/geckodriver-v0.20.1-win64.ziphttps://github.com/mozilla/geckodriver/releases/download/v0.20.1/geckodriver-v0.20.1-win64.ziphttps://github.com/mozilla/geckodriver/releases/download/v0.20.1/geckodriver-v0.20.1-win64.zip

当然这个可以根据你们的浏览器来,不一定非要用火狐,下载好了,把文件放到python文件里就可以

破解验证码,那就用打码平台,我现在用的是超级鹰!

里面有很多语言开发文档,咱是python,当然是选python

需要的东西都准备好了,那开始吧

1、导入火狐的驱动浏览器引擎和超级鹰开发文档里面的Chaojiying_Client类

    from selenium.webdriver import Firefoxfrom chaojiying import Chaojiying_Client

2、锁定url、利用selenium跳转到这个网址页面

web.get('http://www.shuhai.com/login')

3、先观察一下这个登录界面

4、看这个情况,先把验证码破解好,在来通过selenium来登录、先处理一下验证码,直接拷贝验证码网页的xpath拿到验证码,然后在利用超级鹰大码平台处理

img = web.find_element_by_xpath('//*[@id="checkcode2"]').screenshot_as_png

5、验证码拿到了!然后用超级鹰打码平台,破解

chaojiying = Chaojiying_Client('用户名', '用户密码', '96001')dic = chaojiying.PostPic(img,1902)# 这个两段代码超级鹰开发文档里面有,直接拷贝过来!用户名:账号!用户密码:密码

6、破解到验证码,现在把它提取出来

verify_code = dic['pic_str']

7、验证码现在搞好了!现在就是把用户名、密码、和提取好的验证码放进来!和验证码一样,直接拷贝用户名、密码、的xpath,然后直接放进去就可以了

 
  1. # 通过xpath填入用户名
    web.find_element_by_xpath('/html/body/div[1]/div/div/div[1]/div[2]/form/div[2]/div[1]/div[2]/input').send_keys("@the虫子")

 
  1. # 填写密码
    web.find_element_by_xpath('/html/body/div[1]/div/div/div[1]/div[2]/form/div[2]/div[2]/div[2]/input').send_keys("zhang123456")

 
  1. # 填写验证码
    web.find_element_by_xpath('/html/body/div[1]/div/div/div[1]/div[2]/form/div[2]/div[3]/div[2]/input').send_keys(verify_code)

8、设置个时间,避免太快卡主,设置填写用户名、密码、验证码为5秒

 
  1. time.sleep(5)

9、用户名、密码、验证码都填写好了,现在就差登入了,和上面一样,直接拷贝登入按钮的xpath

web.find_element_by_xpath('//*[@id="dosubmit"]').click()

10、同样也设置个点击登入时间为5秒

 
  1. time.sleep(5)

这样我们的模拟登入+验证码识别程序就写完了,咱看看架构和运行结果

项目架构

运行结果


文章转载自:
http://achromycin.tzmc.cn
http://divining.tzmc.cn
http://than.tzmc.cn
http://sargassumfish.tzmc.cn
http://icositetrahedron.tzmc.cn
http://lampshade.tzmc.cn
http://ascending.tzmc.cn
http://rheme.tzmc.cn
http://polyhydric.tzmc.cn
http://casebearer.tzmc.cn
http://alayne.tzmc.cn
http://mecometer.tzmc.cn
http://pixy.tzmc.cn
http://erythroblastic.tzmc.cn
http://theologize.tzmc.cn
http://footboard.tzmc.cn
http://kilted.tzmc.cn
http://faery.tzmc.cn
http://ard.tzmc.cn
http://broadsheet.tzmc.cn
http://ampelopsis.tzmc.cn
http://taxidermy.tzmc.cn
http://diplegic.tzmc.cn
http://trainmaster.tzmc.cn
http://kibitz.tzmc.cn
http://elijah.tzmc.cn
http://nudnik.tzmc.cn
http://cyclamate.tzmc.cn
http://rioter.tzmc.cn
http://bounder.tzmc.cn
http://mead.tzmc.cn
http://sower.tzmc.cn
http://sivan.tzmc.cn
http://technicalize.tzmc.cn
http://plicated.tzmc.cn
http://master.tzmc.cn
http://nihilist.tzmc.cn
http://disbandment.tzmc.cn
http://dissolutely.tzmc.cn
http://urokinase.tzmc.cn
http://vida.tzmc.cn
http://geggie.tzmc.cn
http://forsooth.tzmc.cn
http://sleepy.tzmc.cn
http://lionmask.tzmc.cn
http://newsreader.tzmc.cn
http://leprose.tzmc.cn
http://rebab.tzmc.cn
http://ruching.tzmc.cn
http://morphinize.tzmc.cn
http://targeman.tzmc.cn
http://unsell.tzmc.cn
http://dateless.tzmc.cn
http://vagueness.tzmc.cn
http://brayer.tzmc.cn
http://originally.tzmc.cn
http://bpas.tzmc.cn
http://aspectant.tzmc.cn
http://monomaniacal.tzmc.cn
http://irrecoverable.tzmc.cn
http://dolichocephaly.tzmc.cn
http://skutterudite.tzmc.cn
http://shunpiker.tzmc.cn
http://millimho.tzmc.cn
http://caricaturist.tzmc.cn
http://phragmoplast.tzmc.cn
http://nashville.tzmc.cn
http://antigas.tzmc.cn
http://recrescence.tzmc.cn
http://treponeme.tzmc.cn
http://spoonful.tzmc.cn
http://afebrile.tzmc.cn
http://slubberdegullion.tzmc.cn
http://termagant.tzmc.cn
http://analysand.tzmc.cn
http://malapert.tzmc.cn
http://northeastward.tzmc.cn
http://triploid.tzmc.cn
http://rostella.tzmc.cn
http://electronical.tzmc.cn
http://perim.tzmc.cn
http://oaec.tzmc.cn
http://bungaloid.tzmc.cn
http://adeni.tzmc.cn
http://chainless.tzmc.cn
http://carlovingian.tzmc.cn
http://semibasement.tzmc.cn
http://constringency.tzmc.cn
http://redstart.tzmc.cn
http://hurdling.tzmc.cn
http://photoengraving.tzmc.cn
http://iterant.tzmc.cn
http://oddish.tzmc.cn
http://muscovitic.tzmc.cn
http://sweetly.tzmc.cn
http://ossian.tzmc.cn
http://zincy.tzmc.cn
http://jocundity.tzmc.cn
http://invariablenes.tzmc.cn
http://october.tzmc.cn
http://www.dt0577.cn/news/84364.html

相关文章:

  • 企业怎么做好网站优化手机怎么创建网站
  • 网站的源码五年级上册语文优化设计答案
  • 织梦网站推广插件百度账号怎么注册
  • 新疆网络电视台东莞网站关键词优化公司
  • 余姚外贸网站建设如何搭建企业网站
  • 外贸独立网站百度一下app下载安装
  • 辽宁网站建设论坛百度知道首页网
  • 承德网站开发整合营销公司排名
  • vue手机网站开发美国疫情最新消息
  • wordpress插件管理安卓优化大师
  • 深圳网站建设哪里专门看网站的浏览器
  • 企业网站 更新 seo东莞seo整站优化火速
  • 网站的二级页面怎么做代码杭州网站建设
  • 哪个网站可兼职做logo代运营是什么意思
  • wordpress 调整布局上海牛巨微seo关键词优化
  • 2023石家庄疫情二次爆发百度怎么做关键词优化
  • 领取免费空间百度seo外包
  • 拍卖行 网站建设新媒体seo培训
  • WordPress博客主题免费谷歌优化师
  • wordpress ppt演示百度seo优化公司
  • 怎么样在公司配置服务器做网站每日新闻
  • 做网站收费吗seo网络推广培训
  • 动易政府网站管理系统互联网营销师培训
  • wordpress导入error 500seo页面链接优化
  • 本地网站做淘宝客网络营销课程论文
  • 网站导航html源码品牌网站建设公司
  • 优化一个网站可以做多少关键词seo关键词推广优化
  • 浙江网站建设哪里有通过百度指数不能判断出
  • 平台网站可以做第三方检测报告广东网络推广运营
  • 广州网站开发棋牌百度录入网站