@@ -0,0 +1,1167 @@
+# -*- coding: utf-8 -*-%0A%22%22%22%0ACreated on Mon Jun 27 00:41:49 2016%0A%0A@author: Jeff%0A%22%22%22%0Adef downloadCSV( geneName ):%0A    %0A    %0A    ## import webdriver%0A    from splinter.browser import Browser%0A    %0A    ## alternative driver api%0A    ## driver = webdriver.Chrome(%22C:/Users/Jeff/Downloads/chromedriver.exe%22)%0A    ## import the driver, and visit the exac.broadinstitute.org webpage%0A    ## b = driver.get(%22http://exac.broadinstitute.org/awesome?query=SAMD11%22) %0A    %0A    %0A    ## load chrome driver, visit targer url%0A    b = Browser(driver_name=%22chrome%22)%0A    url = %22http://exac.broadinstitute.org/awesome?query=%22 + geneName%0A    %0A    b.visit(url)%0A    %0A    %0A    ## find the LoF button, by web elementary inspect%0A    button = b.find_by_id(u%22consequence_lof_variant_button%22)%0A    %0A    ## trigger the button%0A    button.click()%0A    %0A    %0A    ## find the Export to CSV button, also by web elementary inspect%0A    button2 = b.find_by_id(u%22export_to_csv%22)%0A    %0A    ## trigger the button, download the target CSV document%0A    button2.click()%0A    %0A    b.quit()%0A    ## repeat~~~%0A    ## b.visit(%22http://exac.broadinstitute.org/awesome?query=PCSK9%22)%0A    %0A%0AdownloadCSV(%22SAMD11%22)%0AdownloadCSV(%22TNN%22)%0A

add Python script, to pull data from ExAC websit