🎟️

undetected_chromedriver

Created
Sep 15, 2023 07:15 AM
Tags
自动化工具
Person
太简单 不想讲。同Selenium
 
直接看官网>>>>>>>>>>>>>> undetected-chromedriver · PyPI
github>>>>>>>>>>>>>>>>>

安装

pip install undetected-chromedriver

运行

ssl._create_default_https_context = ssl._create_unverified_context uc.TARGET_VERSION = 91 driver = uc.Chrome() driver.get('https://www.dongchedi.com/user/53334173333') driver.find_element_by_xpath('//*[@id="__next"]/div[1]/div[2]/div/div[1]/div[2]/header/nav/a[2]').click() driver.close()