Skip to content

Instantly share code, notes, and snippets.

@codewithbas
codewithbas / stats.py
Created January 26, 2022 11:24
Getting stats from Twitter's API
import json
from TwitterAPI import (
TwitterAPI,
TwitterPager
)
consumer_key = "<YOUR API KEY>"
consumer_secret = "<YOUR API KEY SECRET>"
access_token = "<YOUR ACCESS TOKEN>"
access_token_secret = "<YOUR ACCESS TOKEN SECRET>"