Skip to content

Instantly share code, notes, and snippets.

@terukaze1939
Created July 20, 2023 04:34
Show Gist options
  • Save terukaze1939/2cdd0fba4af6fad5cad1528430dc610f to your computer and use it in GitHub Desktop.
Save terukaze1939/2cdd0fba4af6fad5cad1528430dc610f to your computer and use it in GitHub Desktop.
Selenium chrome
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
import time
def main():
service = Service(ChromeDriverManager().install())
driver = webdriver.Chrome(service=service)
driver.get("https://google.com")
time.sleep(10)
driver.close()
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment