Skip to content

Instantly share code, notes, and snippets.

@ohenak
Created May 3, 2017 07:08
Show Gist options
  • Save ohenak/1644a6d03217d061971504525426c848 to your computer and use it in GitHub Desktop.
Save ohenak/1644a6d03217d061971504525426c848 to your computer and use it in GitHub Desktop.
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