from ddddocr import DdddOcr import time from selenium import webdriver from selenium.webdriver import ChromeOptions from PIL import Image ocr = DdddOcr() url = "https://portal.sysu.edu.cn/#/login" # opt.add_argument('--headless') options = ChromeOptions() options.add_experimental_option('excludeSwitches', ['enable-automation']) options.add_experimental_option('useAutomationExtension', False) driver = webdriver.Chrome(options=options) driver.execute_cdp_cmd('Page.addScriptToEvaluateOnNewDocument', { 'source': 'Object.defineProperty(navigator, "webdriver" ,{get:() => undefined}) ' }) driver.get(url) script = 'Object.defineProperty(navigator,"webdriver",{get:() => false,});' driver.maximize_window() driver.find_element_by_xpath('//*[@id="root"]/span/div/div[2]/div[1]/div/div[1]/div[2]/div/div/div/button').click() driver.maximize
中山大学抢羽毛球系统
于 2023-02-20 00:25:23 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)