随笔分类 -  selenium

selenium phantomjs爬取
chrome和firefox driver使用代理
摘要:chrome chromedriver使用代理示例 from selenium import webdriver from selenium.webdriver import DesiredCapabilities option = webdriver.ChromeOptions() caps = 阅读全文
posted @ 2023-01-13 17:59 落叶虽美只活一世 阅读(397) 评论(0) 推荐(0) 编辑
解决DevToolsActivePort file doesn't exist
摘要:今天遇到个小问题:selenium 启动 chrome crash,报错:DevToolsActivePort file doesn't exist。 在option中添加一下几行: option = webdriver.ChromeOptions() option.add_argument('-- 阅读全文
posted @ 2023-01-13 17:48 落叶虽美只活一世 阅读(6755) 评论(0) 推荐(0) 编辑
selenium driver add_cookie正确姿势
摘要:需求 seo给了个开发小需求,查询搜索引擎站点后台的索引量 需求分析 难点在于怎么绕过登录 技术选型 使用selenium+firefox+geckodriver执行抓取 技术难点解析 获取cookie # 登录目标网站后,请求目标url复制请求头Cookie cookies = """xxx1=x 阅读全文
posted @ 2023-01-13 17:40 落叶虽美只活一世 阅读(157) 评论(0) 推荐(0) 编辑
mysql插入数据报错一二
摘要:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near Data truncated for column 'update_time' at row 1 阅读全文
posted @ 2019-05-20 11:24 落叶虽美只活一世 阅读(874) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
Live2D
欢迎阅读『selenium』
点击右上角即可分享
微信分享提示