Skip to content

Instantly share code, notes, and snippets.

@2shortplanks
Created November 9, 2012 21:16
Show Gist options
  • Save 2shortplanks/4048317 to your computer and use it in GitHub Desktop.
Save 2shortplanks/4048317 to your computer and use it in GitHub Desktop.
Backup twitter every hour
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.pimpyourmacwithperl.scripts.twitter</string>
<key>StartInterval</key>
<integer>3600</integer>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-c</string>
<string>/usr/bin/curl http://api.twitter.com/1/statuses/user_timeline.json?screen_name=2shortplanks > /Users/mark/Dropbox/resources/tweet_history/twitter-$(TZ=UTC date +%Y-%m-%dT%H:%M:%S).json</string>
</array>
<key>KeepAlive</key>
<false/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment