Skip to content
Browse files

Nearly ready for the world

  • Loading branch information...
1 parent cc9fb7b commit dd3fe6a364d3ca7d2b3d9de8308878832b11cbe3 @techbelly committed Apr 8, 2010
Showing with 21 additions and 4 deletions.
  1. +15 −0 README.markdown
  2. +4 −2 get_tweets
  3. +2 −2 tweetbook.xsl
View
15 README.markdown
@@ -0,0 +1,15 @@
+VANITY PUBLISHING, 140 CHARACTERS AT A TIME
+===================================
+
+Everything you need to make a real goddamned, physical book of your twitter feed.
+
+Well, nearly everything. These scripts will help you generate some XML:FO that you can run through your favourite XSL:FO processor (I used apache's FOP) to render a whole goddamned book.
+
+So...
+
+ get_tweets username password > all_my_tweets.tsv
+ generate_xml < all_my_tweets.tsv > all_my_tweets.xml
+ xsltproc tweetbook.xsl tweetbook.fo
+ fop tweetbook.fo tweetbook.pdf
+
+Right now, I'm getting one printed using Lulu.com, I'll let you know how it goes.
View
6 get_tweets
@@ -68,5 +68,7 @@ class TwitterBackup
puts [id,date,text].join("\t")
end
end
-
-TwitterBackup.new.retweets(ARGV[0],ARGV[1])
+
+username,password = ARGV[0],ARGV[1]
+TwitterBackup.new.tweets(username,password)
+TwitterBackup.new.retweets(username,password)
View
4 tweetbook.xsl
@@ -55,10 +55,10 @@
</fo:block-container>
<fo:block-container break-before="page" font-size="14pt" font-family="JansonText" text-align="center" text-align-last="center" >
<fo:block>
- http://www.twitter.com/beng
+ http://www.twitter.com/USERNAME
</fo:block>
<fo:block space-before="30mm" font-style="italic">
- For Leonard, my monster, in the hope that you come to know me as a friend as well as a father.
+ Maybe a bit of a dedication here.
</fo:block>
</fo:block-container>
</fo:flow>

0 comments on commit dd3fe6a

Please sign in to comment.
Something went wrong with that request. Please try again.