📅  最后修改于: 2022-03-11 14:46:52.296000             🧑  作者: Mango
# Use Chrome in selenium
# Run cmd type: python -m pip install webdriver-manager
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
browser = webdriver.Chrome(ChromeDriverManager().install())
browser.get('https://www.legifrance.gouv.fr')
searchElem = browser.find_element_by_css_selector('#query')
searchElem.send_keys('jurisprudence')
searchElem.submit()
browser.back()