Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with wget
#8
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.
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()
Reply


Messages In This Thread
Help with wget - by whatloop - Mar-18-2019, 03:31 PM
RE: Help with wget - by nilamo - Mar-18-2019, 04:03 PM
RE: Help with wget - by whatloop - Mar-18-2019, 06:14 PM
RE: Help with wget - by nilamo - Mar-18-2019, 06:31 PM
RE: Help with wget - by whatloop - Mar-22-2019, 04:40 AM
RE: Help with wget - by snippsat - Mar-22-2019, 08:37 AM
RE: Help with wget - by DeaD_EyE - Mar-22-2019, 10:11 AM
RE: Help with wget - by snippsat - Mar-22-2019, 11:40 AM
RE: Help with wget - by whatloop - Mar-25-2019, 07:55 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020