![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python爬虫
JDSYDWR
只讲亲手做过的,只讲肯定正确的
展开
-
Google无头浏览器+规避检测selenium同时使用(新老方法)
from selenium import webdriverfrom time import sleep#无可视化界面from selenium.webdriver.chrome.options import Options#规避检测selenium(老方法)# from selenium.webdriver import ChromeOptions#规避检测selenium(新方法)# from selenium.webdriver import Chrome#google不显示执行操.原创 2021-09-20 10:08:16 · 1237 阅读 · 0 评论 -
selenium模拟登录12306网站(2021最新方法)实测可用
from selenium import webdriverfrom time import sleepfrom selenium.webdriver import ChromeOptionsfrom selenium.webdriver import ActionChainsurl = 'https://kyfw.12306.cn/otn/resources/login.html'#实例化一个浏览器对象,打开浏览器,同时进行检测规避# 防止12306禁止seleniumoptions .原创 2021-09-20 09:59:00 · 572 阅读 · 1 评论