This script allows you to:
- Store MegaUpload links in a file .list
- Run the script on a shell
- Stop and resume downloads at any time
- Add links to the files even when working
ubugnu@ubugnu-laptop:~$ cd Downloads/than create the script file
ubugnu@ubugnu-laptop:~$ touch .list
ubugnu@ubugnu-laptop:~$ sudo nano /usr/bin/megaand put
make it executable
#!/bin/bash
#for l in $@
list=`cat .list`
for l in $list
do
echo "downloading $l..."
url=`wget -qO- $l | grep -P "id=\"downloadlink\"" | grep -oP "(((http)\://){1}\S+)" | grep "megaupload.com\/files" | tr -d "\""`
echo "url found: [$url] sleeping 46 sec..."
sleep 46
wget -c $url
echo "$l downloaded" `date`
sed -i '1 d' .list
done;
ubugnu@ubugnu-laptop:~$ sudo chmod +x /usr/bin/megaTo begin downloads, populate the .list file with MegaUpload links (line by line) than enter to the download folder and run the script
ubugnu@ubugnu-laptop:~$ cd Downloads/
ubugnu@ubugnu-laptop:~$ mega
Aucun commentaire:
Enregistrer un commentaire