from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.keys import Keys
import time
url='https://www.baidu.com/'
url=url.encode('ascii','ignore').decode('unicode_escape')
service=Service(executable_path=r'/usr/bin/chromedriver')
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disabl
在colab上运行Selenium[某农业大学作业不退版本解决方案]
最新推荐文章于 2024-05-29 10:52:51 发布