semvec/pypi-packages huggingface dataset:
TwitterStats 0.0.6
Python Package to collect stats from Twitter API
License: MIT
Requires Python: >=3.6

# TwitterStats

This packages downloads relevant Tweet and Follower Stats for your account.

## Usage

```python
from twitterstats import Fetcher

consumer_key        = "<YOUR API KEY>"
consumer_secret     = "<YOUR API KEY SECRET>"
access_token        = "<YOUR ACCESS TOKEN>"
access_token_secret = "<YOUR ACCESS TOKEN SECRET>"

fetcher = Fetcher(consumer_key, consumer_secret, access_token, access_token_secret)

promoted_tweets = fetcher.get_tweets(promoted=True)
unpromoted_tweets = fetcher.get_tweets(promoted=False)
followers = fetcher.get_followers()
```

For further details, consult this article:
[Using Twitter's API to Gather Tweet Stats (and Follower Data) in Python](https://dev.to/bascodes/using-twitters-api-to-gather-tweet-stats-and-follower-data-in-python-kkk)

## Thanks

This package makes use of the [`TwitterAPI` package](https://github.com/geduldig/TwitterAPI/).