comparison moefetch.sh @ 164:ecc73a13549f

another whoopsie
author edhoprima@gmail.com <edhoprima@gmail.com>
date Fri, 05 Jun 2009 19:21:00 +0000
parents e2149ba6ab9c
children 9495944e326b
comparison
equal deleted inserted replaced
163:e2149ba6ab9c 164:ecc73a13549f
68 echo 68 echo
69 echo "Fetching xml file" 69 echo "Fetching xml file"
70 wget "http://${SITE}/post/index.xml?tags=${TAGS}&offset=0&limit=100000" -O "${SITE_DIR}-${TARGET_DIR}-xml" -e continue=off 70 wget "http://${SITE}/post/index.xml?tags=${TAGS}&offset=0&limit=100000" -O "${SITE_DIR}-${TARGET_DIR}-xml" -e continue=off
71 echo "Processing XML file..." 71 echo "Processing XML file..."
72 # xslt evilry 72 # xslt evilry
73 xsltproc - "${TARGET_DIR}-xml" <<EOF | sed 's/.*\(http.*\)\(\/[a-f0-9]\{32\}\).*\.\([jp][pn]g\)/\1\2.\3/g' | grep ^http > "${TARGET_DIR}-list" 73 xsltproc - "${SITE_DIR}-{TARGET_DIR}-xml" <<EOF | sed 's/.*\(http.*\)\(\/[a-f0-9]\{32\}\).*\.\([jp][pn]g\)/\1\2.\3/g' | grep ^http > "${SITE_DIR}-${TARGET_DIR}-list"
74 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 74 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
75 <xsl:output method="xml" indent="yes"/> 75 <xsl:output method="xml" indent="yes"/>
76 <xsl:template match="post"> 76 <xsl:template match="post">
77 <xsl:value-of select="@file_url" /> 77 <xsl:value-of select="@file_url" />
78 </xsl:template> 78 </xsl:template>