Coder Social home page Coder Social logo

sobuur0 / easy-twitter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mutairibassam/easy-twitter

0.0 0.0 0.0 39 KB

Simplifying Twitter APIs by leveraging tweepy library.

Home Page: https://pypi.org/project/easytwitter/

License: MIT License

Python 98.39% Gherkin 1.61%

easy-twitter's Introduction

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.
Auth.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 = Api.get_user_timeline()
df.head()

get_followers_details()

Returns a users' followers details.

df = Api.get_followers_details()
df.head()

get_mentions_timeline()

Returns the 20 most recent mentions, including retweets.

df = Api.get_mentions_timeline()
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

easy-twitter's People

Contributors

mutairibassam avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.