layout : post
title : "selenium(크롤링)"
category : Python
from selenium import webdriver
options = webdriver.ChromeOptions()
# options.add_argument("--headless")
# options.add_argument("--test-type")
# options.add_argument("--disable-gpu")
# options.add_argument("--no-first-run")
# options.add_argument("--no-default-browser-check")
# options.add_argument("--ignore-certificate-errors")
# options.add_argument("--start-maximized")
path = "C:/chromedriver.exe"
# url = "http://13.209.99.122:3000/"
# url = "https://www.bet365.com/"
url = "http://localhost:8080/LO1000"
driver = webdriver.Chrome(path, options=options)
driver.get(url)
# assert "bet365" in driver.title
driver.find_element_by_id("USER_ID").send_keys("hanbong5938@s.com")
driver.find_element_by_id("USER_PW").send_keys("fdsa123")
driver.find_element_by_id("signUpBtn").click()
print("success")
# driver.quit()
'IT > python' 카테고리의 다른 글
2021-01-06-가상환경 (0) | 2023.02.27 |
---|
댓글