Created
December 14, 2011 20:11
-
-
Save terrycojones/1478265 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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