-r --followers display followers of the given user (default)
-g --following display users the given user is following
-a --api-rate see your current API rate limit status
-r --followers display followers of the given user (default)
-g --following display users the given user is following
-a --api-rate see your current API rate limit status
-import os, sys, time, calendar, urllib2, httplib
+import os, sys, time, calendar
# T-Follow (Twitter-Follow) application registered by @stalkr_
CONSUMER_KEY='USRZQfvFFjB6UvZIN2Edww'
CONSUMER_SECRET='AwGAaSzZa5r0TDL8RKCDtffnI9H9mooZUdOa95nw8'
# T-Follow (Twitter-Follow) application registered by @stalkr_
CONSUMER_KEY='USRZQfvFFjB6UvZIN2Edww'
CONSUMER_SECRET='AwGAaSzZa5r0TDL8RKCDtffnI9H9mooZUdOa95nw8'
def parse_args(args, options):
"""Parse arguments from command-line to set options."""
def parse_args(args, options):
"""Parse arguments from command-line to set options."""
- long_opts = ['help', 'oauth', 'followers', 'following', 'api-rate']
- short_opts = "horga"
+ long_opts = ['help', 'oauth', 'followers', 'following', 'api-rate', 'ids']
+ short_opts = "horgai"
opts, extra_args = getopt(args, short_opts, long_opts)
for opt, arg in opts:
opts, extra_args = getopt(args, short_opts, long_opts)
for opt, arg in opts:
options['followers'] = False
elif opt in ('-a', '--api-rate'):
options['api-rate' ] = True
options['followers'] = False
elif opt in ('-a', '--api-rate'):
options['api-rate' ] = True