nomade dj software

LGPL mp3 blog tracks bashrc grabber

by admin on Jan.20, 2010, under free tools

#!/bin/bash
# GNU LESSER GENERAL PUBLIC LICENSE

if [ ${1} ]; then
URL_WARFARE=${1};
else
URL_WARFARE=”\
http://redthreat.wordpress.com \
http://www.negrophonic.com \
http://russianadults.blogspot.com \
http://www.dudesblox.com \
http://forever-awesome.blogspot.com \
http://www.ihopeyourearsbleed.com \
http://www.dancefloormayhem.com \
http://www.diese05.com/blogv2/index.php \
http://certifiedbanger.blogspot.com \
http://hotbiscuits.wordpress.com/ \
http://partycmyk.wordpress.com/
http://fluokids.blogspot.com \
http://discodust.blogspot.com \
http://attorneyst.com \
http://www.20jazzfunkgreats.co.uk/wordpress \
http://palmsout.blogspot.com \
http://this.bigstereo.net \
http://bouleafacettes.blogspot.com \
http://creamteam.tv/ \
http://www.discodelicious.com/ \
http://www.discoworkout.com \
http://www.fluxblog.org/ \
http://winniecooper.net/ \
http://www.wavesatnight.com/ \
http://thecurbcrawlers.com/blog/ \
http://solidgoldberger.blogspot.com/ \
http://redthreat.wordpress.com/ \
http://pinglewood.com/ \
http://missingtoof.com/ \
http://manrecorder.manrecordings.com/ \
http://ladecadanse.blogspot.com/ \
http://knicken.blogspot.com/ \
http://iheartcomix.com/ \
http://masshyperbole.blogspot.com/ \
http://hotbiscuits.wordpress.com/ \
http://www.cta-music.com/ \
http://analoggiant.blogspot.com/ \
http://audiopleasures.blogspot.com/ \
http://www.boysnoize.com/blog/ \
“;
fi

rm /tmp/zzz

#find *.mp3 -exec sha1 {} \; > ${SHADATA}
SHADATA=${HOME}/sha1.data
SKIPFILENAME=${HOME}/skip_dl

for myurl in ${URL_WARFARE}
do
echo ${myurl}
curl –max-time 10 ${myurl} >> /tmp/zzz
done

grep “\.mp3″ /tmp/zzz | sed ’s!>!\n!g’ | grep “\.mp3″ | sed ’s!http://!@!’ | sed ’s!.mp3!@!’ | cut -d@ -f2 | grep -v [\<\>] | grep -v ‘”‘| grep -v \’ | sort -u | sed ‘/^$/d’ | while read line
do
basefilename=$(basename “${line}.mp3″)
filename=${HOME}/grab/$(basename “${line}.mp3″);
echo “${basefilename} > $filename”
skipf=$(grep -c “${basefilename}” “${SKIPFILENAME}”)
if [ ${skipf} -gt 0 ]; then
echo “[SKIP FILE !!!!] ${filename}”
fi;

if [ -f "${filename}" ] || [ ${skipf} -gt 0 ] ; then
echo “[SKIP] ${filename}”
else
echo “${basefilename}” >> ${SKIPFILENAME}
curl –max-filesize 20000000 “${line}.mp3″ -o “${filename}”
if [ -f "${filename}" ]; then
sha=$(sha1sum “${filename}” | cut -d” ” -f1)
shac=$(grep ${sha} ${SHADATA} | wc -l)
if [ ${shac} -gt 1 ]; then
echo “[SKIP SHA1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!] ${filename}”
rm “${filename}”
else
echo ${sha} >> ${SHADATA}
fi
fi
fi
done

:, , , ,

Comments are closed.

Archives

discoriders"