Changes

Jump to navigation Jump to search
handles = driver.window_handles
driver.switch_to_window(handles[-1])
 
 
#Visit desired website
urllib.urlretrieve(url, tag)
driver.close()
switch_window()
pdfs_on_page = driver.find_elements_by_xpath("//div/div/div/article/div/ul/li/a")
#saves interior pdf
urllib.urlretrieve(url, pdf_tag)
driver.close()
switch_window()
 
print "download complete"

Navigation menu