Selenium 使用

Selenium 控制 Chrome

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
import time

s = Service(r"C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chromedriver_win32\chromedriver.exe")
driver = webdriver.Chrome(service=s)
driver.get('https://www.baidu.com')
time.sleep(5)
driver.close()

Selenium 安装与 chromedriver安装

https://www.cnblogs.com/lfri/p/10542797.html

读取Excel数据自动提交网页表单

https://www.bilibili.com/video/BV1EP4y1P7y1

Selenium-Xpath使用方法

https://www.cnblogs.com/blackbird0423/p/8907291.html

posted @ 2022-04-12 08:42  shenshu  阅读(47)  评论(0编辑  收藏  举报