Gå til hovedinnhold

Autodownloader for put.io


Downloading files from your put.io archive can be done with wget, it can be done unattended and you won't even have to initiate the job:
  1. Place all the files you would like to download in a folder on put.io (i.e /download).
  2. Create the script download.sh on your system.
  3. Run the script as a cron-job (crontab -e)
download.sh
#!/bin/sh
wget --limit-rate=20k --no-check-certificat -c -nH -P /FOLDER/ -r --ftp-user=USERNAME --ftp-password=PASSWORD ftp://ftp.put.io/download/*


--limit-rate=20k will limit bandwith to 20k
--no-check-certificat will skip certificate check
-c will make wget continue the download if interrupted  
-nH will stop creating the ftp-path in your download-folder
-P /FOLDER/ tell wget where to put the downloaded files
-r recursive, so that even folders in download will be downloaded
--ftp-user=USERNAME Your username to put.io
--ftp-password=PASSWORD Your password to put.io (special characters need a backslash i.e PASS\!WORD if your password is PASS!WORD)

Add this to crontab:
0 1 * * * /path/to/script/download.sh

Cron will now run the script every night at 01 AM. Tip: You can list all your cronjobs with crontab -l.

Kommentarer

Populære innlegg fra denne bloggen

Locales i Ubuntu og andre Debian-spinoffs

"dpkg-reconfigure locales" genererer locales som er listet opp i filen "/var/lib/locales/supported.d/local". Ønsker man å generere flere enn de som allerede er oppført må man derfor legge de til der (en på hver linje) før man kjører "dpkg-reconfigure locales". Godtatt syntaks finnes i filen "/usr/share/i18n/SUPPORTED". Typisk: no_NO.UTF-8 UTF-8 no_NO ISO-8859-1

Helle synger Flashlight (Jessie J) og vinner Talentiaden 2016 på Gudeber...