DeprecationWarning find_element_by_ commands are deprecated. Please use find_element()解决
老版本,已经被弃用,很快就失效了driver.find_element_by_xpath("//input[@id='keyword']")需要改成下面的这样格式driver.find_element(By.XPATH,"//input[@id='keyword']")fromseleniumimportwebdriverfromselenium.webdriver.chrome.servicei