Simplifing Twitter APIs.
Project description
Easy-Twitter
Simplifying Twitter APIs by leveraging tweepy library
Prerequisites
- Twitter developer account. For registration
- Pandas library
# terminal
pip install pandas
# python
import pandas
- Tweepy library
# terminal
pip install tweepy
# python
import tweepy
Installation
# terminal
pip install easytwitter
Usage
- Import module
# to access all the functions
from easytwitter import *
- First establish the connection
# you need to enter your twitter tokens
# consumer_key = "xxxxxxxxxxxxxxxxxxxx"
# consumer_secret = "xxxxxxxxxxxxxxxxxxxxxxx"
# access_token = "xxxxxxxxxxxxxxxxxxxxxx"
# access_token_secret = "xxxxxxxxxxxxxxxxxxxxxxx"
user.connect_me()
API Reference
get_user_timeline()
Returns the 20 most recent statuses posted from the specified user as a dataframe. To interact with the dataframe, you should store the returned value.
df = user.get_user_timeline()
df.head()
get_followers_details()
Returns a user’s followers details as a dataframe.
df = user.get_followers_details()
df.head()
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easytwitter-0.1.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for easytwitter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 311565d192d0d64a9bb7498e87df111f5418fc2bba9cf1fcfa95cfd76e26ad64 |
|
MD5 | b864feb6d2f45a754effe05a28b4a5e3 |
|
BLAKE2b-256 | 05e05d5999cefe2cec9eba48045edc2d9fe5d69c70caf20e9e35a00ff9324708 |