Skip to main content

Simplifing Twitter APIs.

Project description

Easy-Twitter

Simplifying Twitter APIs by leveraging tweepy library

Prerequisites

  1. Twitter developer account. For registration
  2. Pandas library
# terminal
pip install pandas
# python
import pandas
  1. 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

MIT

Project details


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)

Uploaded Source

Built Distribution

easytwitter-0.1.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page