From: Banana Date: Wed, 11 Jan 2012 07:10:05 +0000 (+0100) Subject: a small twitter backup script which saves the timeline as rss entries X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=f762099ff945b6c757373e42b7b50afd88d51ed7;p=klimbim.git a small twitter backup script which saves the timeline as rss entries --- diff --git a/bash/twitter-backup.sh b/bash/twitter-backup.sh new file mode 100644 index 0000000..0794fdf --- /dev/null +++ b/bash/twitter-backup.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the COMMON DEVELOPMENT AND DISTRIBUTION LICENSE +# +# You should have received a copy of the +# COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 +# along with this program. If not, see http://www.sun.com/cddl/cddl.html + +# 2011 https://github.com/jumpin-banana + + +# this script should be run with a cronjob once a day to get the rss streem for the given screenname + +# the current date in YYYY-m-d format +# more information with "man date" +curDay=`date +%F`; + +# replace the SCREENNAME with the twitter name +wget -q --output-document=/path/to/twitter-name_$curDay.rss "http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=SCREENNAME" + +exit 0;