Twitter-Pandas, first release

Thanks to some great help from contributors, we’ve just pushed the first release of twitter pandas, v0.0.1.

The first release is aimed at replicating the data-providing (no create/update/delete functions) from the tweepy API with the git-pandas style pandas interface.

To install twitterpandas, just use pip

pip install twitterpandas

And then you can use it right away:

from twitterpandas import TwitterPandas

# create a twitter pandas client object
tp = TwitterPandas(
    TWITTER_OAUTH_TOKEN,
    TWITTER_OAUTH_SECRET,
    TWITTER_CONSUMER_KEY,
    TWITTER_CONSUMER_SECRET
)

# create a dataframe with 10 of my own followers
df = tp.followers(limit=10)
print(df.head())

# create a dataframe with my own information
df = tp.me()
print(df)

# get a dataframe with the information of user willmcginnis
df = tp.get_user(screen_name='willmcginnis')
print(df)

# get back 10 users who match the query willmcginnis
df = tp.search_users(query='willmcginnis', limit=10)
print(df)

In the next release the focus will be on documentation, stabilization, clarity, and testing.  Following that, higher-level helper functions for common analytic tasks will be tackled.

So head over to github and check it out, help us out, or just use it and let us know what you think.

https://github.com/wdm0006/twitter-pandas

The post Twitter-Pandas, first release appeared first on Will’s Noise.