2021
03-30
03-30
python爬虫selenium模块详解
selenium模块selenium基本概念selenium优势便捷的获取网站中动态加载的数据便捷实现模拟登陆selenium使用流程:1.环境安装:pipinstallselenium2.下载一个浏览器的驱动程序(谷歌浏览器)3.实例化一个浏览器对象基本使用代码fromseleniumimportwebdriverfromlxmlimportetreefromtimeimportsleepif__name__=='__main__':bro=webdriver.Chrome(r"E:\google\Chrome\Application\chromedriver.exe")bro.get(url=...
继续阅读 >