Skip to content

Instantly share code, notes, and snippets.

View mcandre's full-sized avatar

Andrew mcandre

  • Milwaukee, WI
View GitHub Profile
#!/bin/bash
if [ "" = "$2" ]
then
dA=`wget -O- "http://backend.deviantart.com/rss.xml?q=gallery%3A$1+sort%3Atime&type=deviation"`
else
dA=`wget -O- "$2"`
fi
echo $dA | xmlstarlet sel -T -t -v //media:content/@url | xargs wget
#!/bin/bash
if [ "" = "$2" ]
then
dA=`wget -O- "http://backend.deviantart.com/rss.xml?q=gallery%3A$1+sort%3Atime&type=deviation"`
else
dA=`wget -O- "$2"`
fi
echo $dA | xmlstarlet sel -T -t -v //media:content/@url | xargs wget