Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created December 14, 2011 20:11
Show Gist options
  • Save terrycojones/1478265 to your computer and use it in GitHub Desktop.
Save terrycojones/1478265 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "IP address limit:"
curl -s http://twitter.com/account/rate_limit_status.json | python -c '\
import sys, pprint, simplejson
d = simplejson.loads(sys.stdin.read())
for k, v in d.items():
print "\t%s: %s" % (k, v)'
echo "Current date/time is `date`"
echo "For limits on an account, use: curl -u user:password http://twitter.com/account/rate_limit_status.json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment