Created
May 3, 2017 07:08
-
-
Save ohenak/1644a6d03217d061971504525426c848 to your computer and use it in GitHub Desktop.
This file contains 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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
import time | |
driver = webdriver.Chrome() | |
driver.get('http://eoddata.com') | |
# Login | |
driver.find_element_by_id('ctl00_cph1_lg1_txtEmail').send_keys('username', Keys.ARROW_DOWN) | |
driver.find_element_by_id('ctl00_cph1_lg1_txtPassword').send_keys('password', Keys.ARROW_DOWN) | |
driver.find_element_by_id('ctl00_cph1_lg1_btnLogin').click() | |
# Click download | |
driver.get('http://eoddata.com/download.aspx') | |
driver.find_element_by_id('cboxClose').click() | |
time.sleep(1) | |
driver.find_element_by_id('ctl00_cph1_d1_btnDownload').click() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment