Thanks to some great help from contributors, we’ve just pushed the first release of twitter pandas, v0.0.1.
多亏了贡献者的大力帮助,我们才推出了Twitter熊猫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.
第一个发行版旨在使用git-pandas样式pandas接口从tweepy API复制提供数据的数据(不创建/更新/删除功能)。
To install twitterpandas, just use pip
要安装twitterpandas,只需使用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.
因此,请转到github并进行检查,帮助我们或只是使用它,让我们知道您的想法。
翻译自: https://www.pybloggers.com/2016/07/twitter-pandas-first-release/