Uses The Cat API and Cat Facts API and the YouTube API.
500 image from HTTP Cats.
-
Create a YouTube API key. You only need an API key, not OAuth credentials.
-
Create an environment variable YOUTUBE_API_KEY holding your key.
-
Create a Cat API key at https://thecatapi.com/signup and create an environment variable CAT_API_KEY holding your key
-
Create and activate virtual environment using Python 3
-
pip install -r requirements.txt -
python app.py
App will be running on http://127.0.0.1:5000
Better error handling. A new module that manages all of the API requests. All kinds of other things.
Placeholder tests provided. To run tests, use this command from the root directory of the project
python -m unittest discover tests
The discover option will find and run all the tests in the tests directory.