skolo-online / twitter-v2-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

twitter-v2-api

In this repo, I included code that utilises the new twitter API V2 using python and tweepy.

YouTube Tutorial Series

There is a full Video tutorial series on youtube as well

  1. Get your twitter API keys and follow people - Twitter API V2 Tutorial 1
  2. Set up twitter search with specific search queries - Twitter API V2 Tutorial 2
  3. Create Flask app to display tweets, retweet and respond manually - Twitter API V2 Tutorial 2

Using the code

Step 1

Clone the repo

Step 2

add your twitter keys in the config.py file

API_KEY = 'add-your-key'
API_KEY_SECRET = 'add-your-key'
BEARER_TOKEN = 'add-your-key'
ACCESS_TOKEN = 'add-your-key'
ACCESS_TOKEN_SECRET = 'add-your-key'
VPS_DIRECTORY = 'add-your-key'

Step 3

Install the libraries

pip install tweepy
pip install flask

About

License:MIT License


Languages

Language:Python 52.4%Language:HTML 47.6%