Skip to content

Instantly share code, notes, and snippets.

View bryanrasmussen's full-sized avatar

bryan rasmussen bryanrasmussen

View GitHub Profile
@bryanrasmussen
bryanrasmussen / tumblr2curl.xsl
Last active February 5, 2019 12:45
An XSLT to output command line calls for curl to download photos from your tumblr blogs. because I tried a few libraries to do the same thing that failed abysmally.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- how to output depends on your processor, I used saxon Transform.exe tumblrimages.xml -xsl tumblr2curl.xsl -o output2.txt
then I copied pasted output2.txt into the my shell. Could have written something to parse the format etc. and download at the same time
but seemed overkill considering I would probably never use again.
-->
<xsl:output method="text"/>
<xsl:template match="post">
<xsl:apply-templates select="photoset"/>
html {
font-size: 93.8%;
background-color: #f1f2f3;
background-image:
-webkit-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em),
-webkit-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em);
background-image:
-moz-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em),
-moz-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em);
background-image: