logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

关于python爬虫中chromedriver的路径配置问题

在以前的版本中可以将chromedriver直接放在项目的根目录然后向webdriver.Chrome函数传入’chromedriver.exe‘路径参数即可调用,但selenium更新到4.0版以上后executable_path 被重构到了 Service 函数里,需要先创建一个Service Object,然后将路径参数传给Service,由其创建webdriver.Chrome函数的Ser

#python#爬虫#chrome +2
到底了