Inspired by the work done in Kanye.Rest, Fast-Kanye-REST gives you a random tweet from the Jeen-Yuhs himself.
Just clone this repo.
Python 3 with pip3
Once cloned go to the project root file and create a virtual environment
$ python3 -m venv .venv
Activate environment
for Linux and MacOS:
$ source .venv/bin/activate
for Windows:
$ .venv/Scripts/activate.bat
Install dependencies:
$ pip install -r requirements.txt
Ensure that your have your Twitter API access token and pass it as an environment variable.
Link to Twitter Dev Dashboard.
Set your environment variables (OSX terminal):
export TWITTER_ACCESS_TOKEN='your_twitter_access_token'
Windows (Powershell):
$env:TWITTER_ACCESS_TOKEN='your_twitter_access_token'
Run it!
$ python main.py
Swagger docs can be found in
/api/docs
Application is set to start locally at port 5001
{
"ye_wisdom":"Believe in your flyness...conquer your shyness."
}