Socket
Socket
Sign inDemoInstall

easytwitter

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    easytwitter

Simplifing Twitter APIs.


Maintainers
1

Readme

Easy-Twitter

Simplifying Twitter APIs by leveraging tweepy APIs.

Required steps

  1. Getting Twitter developer account. For registration
  2. Install Pandas package.
  3. Install Numpy package.
  4. 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

MIT

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc