简化 Twitter API。
项目描述
易推特
通过利用 tweepy API 来简化 Twitter API。
所需步骤
- 获取 Twitter 开发者账号。注册
- 安装熊猫包。
- 安装 Numpy 包。
- 安装 Tweepy 包。
# packages installation "In terminal"
conda install pandas
conda install numpy
pip install tweepy
# importing packages in your jupyter notebook
import pandas as pd # Please use the abbreviation "pd"
import numpy as np # Please use the abbreviation "np"
import tweepy
安装
# how to install easytwitter package
pip install easytwitter
用法
- 导入模块
# use * to access all the objects
from easytwitter import *
- 首先你应该建立连接
# returns 4 inputs to validate your twitter tokens.
user.connect_me()
# consumer_key = "xxxxxxxxxxxxxxxxxxxx"
# consumer_secret = "xxxxxxxxxxxxxxxxxxxxxxx"
# access_token = "xxxxxxxxxxxxxxxxxxxxxx"
# access_token_secret = "xxxxxxxxxxxxxxxxxxxxxxx"
API 参考
get_user_timeline()
返回特定 Twitter 帐户的最新 20 条推文的摘要。
# if you want to interact with the data, store it in a new dataframe
df = user.get_user_timeline()
df.head()
get_followers_details()
返回用户的关注者详细信息。
df = user.get_followers_details()
df.head()
贡献
欢迎请求请求。对于重大更改,请先打开一个问题讨论您想要更改的内容。
执照
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
easytwitter-0.1.2.tar.gz
(4.0 kB
查看哈希)
内置分布
easytwitter-0.1.2-py3-none-any.whl
(4.2 kB
查看哈希)
关
easytwitter -0.1.2.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | f6e6cfc87748d939078bb01417f14d56e24ba0df4d7b3cd7da173e53f97dd52e |
|
| MD5 | 064e536b3c9b9df57b7deaa236727fa7 |
|
| 布莱克2-256 | ddd42d41e1ace556eaca01bf8dccbce16c88d627ea5615084d9d17501b50cf28 |
关
easytwitter -0.1.2-py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 14fe2f9f34832d44237d700ea18a502f9a6612857693bcfab38c15a4c61e22d7 |
|
| MD5 | 22cced17ad81f5a22b8675328287eab5 |
|
| 布莱克2-256 | da1b2fdbfaf34803fafd4f504cc7aebeb132a73d3e8170b34169c2a9f820f8d7 |