[Unfinished ] Link grabber ,Downloader , etc
Hey guys,
this is an unfinished project
, because of lack of time..
thought of sharing it , as others can modify and update it.. <3
so this when executed will ask you to input the link of the forum post/ blog post etc, and it grabs the download links and downloads them ..
any one is free to alter it further ..
users with lil knowledge of the shell can easily do some nice additions
[SLIDE]http://cdnpic.com/out.php/i10242_screenshot-17sep10-03-01.png[/SLIDE]
[SLIDE]http://cdnpic.com/out.php/i10243_screenshot-17sep10-03-02.png[/SLIDE]
Hint : http://www.wjunction.com/showthread.php?t=32893
http://www.wjunction.com/showthread.php?t=35148
sorry for typo in thread title ..
Hey guys,
this is an unfinished project
thought of sharing it , as others can modify and update it.. <3
PHP:
#!/bin/bash
## desiboy
## sat_cse28 ( download hf links using wget )
## http://www.gnu.org/licenses/gpl-2.0.html
function quit {
exit
}
function crawlnclean {
echo Grabbing the Hotfile Links
curl curl --silent $1 > 1.lx
cat 1.lx | grep '[hH][tT][tT][pP]:\/\/[hH][oO][tT][fF][iI][lL][eE]\.com' > 2.lx
sed -e 's/<[^>]*>//g' 2.lx > 3.lx
sed -e 's/overflow: auto">//g' 3.lx > 4.lx
sed -e 's/^[ \t]*//' 4.lx > 5.lx
sed -e 's/iMDB | NFO | Samples 1 2 3 4 | Video Sample //' 5.lx > 6.lx
sed -e 's/Code: Select All | Check this link//' 6.lx > 7.lx
sed -e '/^[ \t]*$/d' 7.lx > links.txt
rm *.lx
echo Grabbed Links from $1
}
## Download Hotfile links using wget by sat_cse28 from wjunction
function hfget {
wget --save-cookies cookie --post-data "returnto=%2F&user=yourusername&pass=yourpass&=Login" -O - http://www.hotfile.com/login.php > /dev/null
echo Downloading the hotfile links
wget -c --load-cookies cookie -i links.txt
}
echo Please, enter the URL to be leeched
read targeturl
crawlnclean $targeturl
hfget
quit
any one is free to alter it further ..
users with lil knowledge of the shell can easily do some nice additions
[SLIDE]http://cdnpic.com/out.php/i10242_screenshot-17sep10-03-01.png[/SLIDE]
[SLIDE]http://cdnpic.com/out.php/i10243_screenshot-17sep10-03-02.png[/SLIDE]
Hint : http://www.wjunction.com/showthread.php?t=32893
http://www.wjunction.com/showthread.php?t=35148
sorry for typo in thread title ..