📜 ⬆️ ⬇️

Downloading files from depositfiles.com from the console

Not my post - just asked to throw. If you like it, then the author's mail for invite: jeka.eee.12@gmail.com . Already received - thanks!

The function for scripts on bash, designed to automate the downloading of files from the file sharing service Depositefiles.com:


down_deposit()
{
wget -O- -q --post-data 'gateway_result=1' "http://depositfiles.com/ru/files/$(basename ${1})" |
sed -n -r -e 's/.*<form action=\"([a-z0-9A-Z\/\.:_\-]+)\" method=\"get\" onSubmit=\"download_started.*/wget -c \"\1\"/gp; s/\t+([0-9]{1,3}) \(\)\./echo \1 /gp' | sh
}

')
How the function works:

You can, of course, simply save the above lines in the file and call the script "down_deposit <link_to_sleep>". :-)

Thanks for attention…

Source: https://habr.com/ru/post/82703/


All Articles