Mar-18-2019, 03:31 PM
recently i uploaded a file in https://send.firefox.com/ but when i try to download a file using wget command the file is not being downloaded. Please show me the right command which can achieve this task
wget your_url_here
.-r
parameter (recursive, so it downloads anything that's linked to that page). https://www.gnu.org/software/wget/manual...e-Download(Mar-22-2019, 04:40 AM)whatloop Wrote: [ -> ]Yes the send.firefox.com doesn't use a link, so the only way now is to scrape the page to find the actual url but it's really hard for me to scrape a pageThere is no way way to find download ulr in the Firefox index send page,i have looked.
https://send.firefox.com/download/79ceb930f5/
79ceb930f5
(new value every download),also try getting/run the JavaScript that generate the link.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()