分享一下滑动验证码的模拟滑动攻克

验证码很让人头疼----极验,现在6.0版本来了,用这种方式实现,通过率只有一成!!

极验的机器学习太强了,可以考虑换IP实现! 还有一点是轨迹!!可以考虑使用已经成功的历史轨迹来作为当前的轨迹!!

网上有太多的破解方法我就不多说了

源码分享 guesst/

 

感谢https://github.com/darbra/geetest

 

windows下配的环境(当时这个环境让人头疼)

安装python2.7

添加环境变量===我的电脑--右击‘属性’==高级系统设置==环境变量==PATH----‘python_2\Scipts’

解压phantomjs到python\Scripts下

安装PIL ====1.1.7

chromedriver.exe放到python\Scripts下

pip install selenium

程序:

chrome

from selenium import webdriver

chromedriver.exe模拟器可以看到chrome现象!

obj = webdriver.Chrome(executable_path=r"E:\python_2\Scripts\chromedriver.exe")

obj.get('https://www.baidu.com/') obj.save_screenshot("1.png") # 截图保存

phantomjs

from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

dcap = dict(DesiredCapabilities.PHANTOMJS) # 设置userAgent dcap["phantomjs.page.settings.userAgent"] = ( "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:25.0) Gecko/20100101 Firefox/25.0 ")

obj = webdriver.PhantomJS(executable_path='E:\python_2\Scripts\phantomjs.exe', desired_capabilities=dcap) # 加载网址 obj.get('https://www.baidu.com/')

 

转载于:https://www.cnblogs.com/recordtime/p/7517422.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值