爬虫-Selenium+Chrome Driver
2021-01-13 本文已影响0人
唐人三藏
1、Selenium:
自动化web测试解决方案,完全模拟真实浏览器环境,做到所见即可爬,原本是测试与浏览器的兼容性;
2、准备阶段:
2.1导入Selenium三方库

2.2查找浏览器版本,下载该版本的驱动:http://chromedriver.storage.googleapis.com/index.html

2.3下载驱动后,解压,复制到环境变量路径:

2.4试运行,如果弹出浏览器,则成功

