From f762099ff945b6c757373e42b7b50afd88d51ed7 Mon Sep 17 00:00:00 2001 From: Banana Date: Wed, 11 Jan 2012 08:10:05 +0100 Subject: [PATCH] a small twitter backup script which saves the timeline as rss entries --- bash/twitter-backup.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 bash/twitter-backup.sh 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; -- 2.39.5