0
I am downloading a pdf through the automatic navigation through the site, for this I disabled the pdf view of Chrome and activated to download the pdf automatically, could I change the name of this file in pdf by the code? There are 64 files, I thought to play a variable with nothing, and to give a specific name to each of the 64, would like?
First snippet of Còdigo serves to disable the pdf viewer and automatically download and its second is the button I click to download
chrome_options = Options()
download_dir = "C:\scrapy"
chrome_options.add_experimental_option('prefs', {
"plugins.plugins_list": [{"enabled":False,"name":"Chrome PDF Viewer"}],
"download": {
"prompt_for_download": False,
"default_directory" : download_dir
}
})
conta_completa = driver.find_element_by_id('btnVerContaCompleta')
conta_completa.click()
sleep(20)
Please post an excerpt of the code you already have to get a better idea of the problem, I suggest you read this help article from the site: How to create a Minimum, Complete and Verifiable example.
– Pedro Gaspar
I thought I didn’t need a piece of the code for the explanation, but I put it there
– guilherme