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