Skip to content

nickjacob/twittercounter-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

twittercounter-py:

simple wrapper for twittercounter.com API

  • adds the ability to pass API a user's screen name instead of ID
  • uses tweepy to access twitter API

Usage:

  1. instantiate API

     import twittercounter
     
     api = twittercounter.API(api_key,{'consumer_key':consumer_key,'consumer_secret':consumer_secret})
    

.. or:

	api = twittercounter.API(api_key)
	api.set_twitter_credentials(consumer_key,consumer_secret)

.. or to just use ID's:

	api = twittercounter.API(api_key)
  1. call_api passing a screen name (if twitter credentials provided) or user id

     data = api.call_api(user).data
     
     followers = data['followers_current']
    

Dependencies:

  • tweepy
  • simplejson
  • urllib,urllib2

About

simple wrapper for twittercounter.com API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages