Simplifing Twitter APIs.
Project description
Easy-Twitter
Simplifying Twitter APIs by leveraging tweepy APIs.
Required steps
- Getting Twitter developer account. For registration
- Install Pandas package.
- Install Numpy package.
- Install Tweepy package.
# 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
Installation
# how to install easytwitter package
pip install easytwitter
Usage
- Import module
# use * to access all the objects
from easytwitter import *
- First your should establish the connection
# 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 Reference
get_user_timeline()
Returns a summary of the latest 20 tweets of a specific twitter account.
# if you want to interact with the data, store it in a new dataframe
df = user.get_user_timeline()
df.head()
get_followers_details()
Returns a users' followers details.
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.2.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file easytwitter-0.1.2.tar.gz
.
File metadata
- Download URL: easytwitter-0.1.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6e6cfc87748d939078bb01417f14d56e24ba0df4d7b3cd7da173e53f97dd52e |
|
MD5 | 064e536b3c9b9df57b7deaa236727fa7 |
|
BLAKE2b-256 | ddd42d41e1ace556eaca01bf8dccbce16c88d627ea5615084d9d17501b50cf28 |
File details
Details for the file easytwitter-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: easytwitter-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14fe2f9f34832d44237d700ea18a502f9a6612857693bcfab38c15a4c61e22d7 |
|
MD5 | 22cced17ad81f5a22b8675328287eab5 |
|
BLAKE2b-256 | da1b2fdbfaf34803fafd4f504cc7aebeb132a73d3e8170b34169c2a9f820f8d7 |