In Python 3 I have this code with the use of selenium to automate a search on a site:
from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary('/usr/lib/firefox/firefox')
ff = webdriver.Firefox(firefox_binary=binary)
ff.get('http://www.stf.jus.br/portal/diariojusticaeletronico/pesquisardiarioeletronico.asp#')
ff.find_element_by_id('argumento').send_keys('PPP')
ff.find_element_by_xpath('/html/body/div/div[3]/div[2]/div[2]/div[2]/form/table/tbody/tr[3]/td/input[1]').click()
The code enters the site and searches for the letters "PPP" on the "PESQUISAR" button
The result is a table with links to PDFs. The PDFs I want are in the "Integral" column
Please, is there a way to automatically save each PDF found in the links in the "Integral" column?