Created
March 20, 2018 16:55
-
-
Save leekiernan/1f595eb11a8fd2d703a11475b34a81ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from selenium import webdriver | |
from bs4 import BeautifulSoup | |
from selenium.webdriver.chrome.options import Options | |
CHROME_DRIVER_PATH = '/mnt/c/Users/leekiernan/AppData/Local/Google/chromedriver.exe' | |
# driver = webdriver.Chrome(CHROME_DRIVER_PATH) | |
# driver.get('http://www.google.com/xhtml'); | |
# time.sleep(5) | |
# search_box = driver.find_element_by_name('q') | |
# search_box.send_keys('ChromeDriver') | |
# search_box.submit() | |
# time.sleep(5) | |
# driver.quit() | |
# driver.find_element(By.XPATH, '//button[text()="Some text"]') | |
# ID = "id" | |
# XPATH = "xpath" | |
# LINK_TEXT = "link text" | |
# PARTIAL_LINK_TEXT = "partial link text" | |
# NAME = "name" | |
# TAG_NAME = "tag name" | |
# CLASS_NAME = "class name" | |
# CSS_SELECTOR = "css selector" | |
chrome_options = Options() | |
chrome_options.add_argument("--headless") | |
driver = webdriver.Chrome(CHROME_DRIVER_PATH, chrome_options=chrome_options) | |
driver.get('https://quote.cshealthcare.co.uk/') | |
# soup = BeautifulSoup(driver.page_source, 'html.parser') | |
# driver.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment