Mar-22-2019, 11:40 AM
Just to try a solution's that will download automatic from a script.
headless option do not work in case as using browser own download mechanism,probably a way around if look closer into it.
headless option do not work in case as using browser own download mechanism,probably a way around if look closer into it.
from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys import time #--| Setup chrome_options = Options() #chrome_options.add_argument("--headless") browser = webdriver.Chrome(chrome_options=chrome_options, executable_path=r'C:\cmder\bin\chromedriver.exe') #--| Parse or automation # FireFox send link url = 'https://send.firefox.com/download/00db8d7758/#oiKrIJUltj-SbNPJs7QcjQ' browser.get(url) time.sleep(3) down_button = browser.find_elements_by_css_selector('#download-btn') down_button[0].click() time.sleep(3) browser.quit()