Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

iterator functions for twitter api

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README
Octocat-spinner-32 setup.py
Octocat-spinner-32 tests.py
Octocat-spinner-32 twitterator.py
README
A start at lazy iterator functions for twitter's api, using their cursors to
page through results.

For example if you want to print out all of danbri's current followers:

    import twitterator

    twitter = twitterator.Twitter()
    for follower in twitter.statuses_followers(screen_name='danbri'):
        print ("%(name)s [%(screen_name)s]" % follower).encode('utf-8')

Or if you want to print out all dchud's friends:

    twitter = twitterator.Twitter()
    for follower in twitter.statuses_friends(screen_name='dchud'):
        print ("%(name)s [%(screen_name)s]" % follower).encode('utf-8')

I guess I'll get around to adding more of the API when I (or someone else)
needs it.

You'll need httplib2 installed for it tow work.

License: Public Domain
Contact: Ed Summers <ehs@pobox.com>
Something went wrong with that request. Please try again.