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
Metadata
Release files for easytwitter 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| easytwitter-0.1.2.tar.gz | 4.0 kB | Without provenance | Details for easytwitter-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easytwitter-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for easytwitter-0.1.2-py3-none-any.whl |
Total release size: 8.2 kB
Release files / easytwitter-0.1.2.tar.gz
| Download URL | easytwitter-0.1.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6e6cfc87748d939078bb01417f14d56e24ba0df4d7b3cd7da173e53f97dd52e
|
|
BLAKE2b-256 checksum How to use checksums |
ddd42d41e1ace556eaca01bf8dccbce16c88d627ea5615084d9d17501b50cf28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / easytwitter-0.1.2-py3-none-any.whl
| Download URL | easytwitter-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14fe2f9f34832d44237d700ea18a502f9a6612857693bcfab38c15a4c61e22d7
|
|
BLAKE2b-256 checksum How to use checksums |
da1b2fdbfaf34803fafd4f504cc7aebeb132a73d3e8170b34169c2a9f820f8d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for easytwitter 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.