To make sure that my own YouTube Data API key was not published,
I separated it into a text file (api_key.txt
) and used .gitignore
to ensure that it wasn't published.
If you wish to do this yourself, you must
- Get your own API key from Google.
- Put this key in a file entitled
api_key.txt
. - Put this file in the same directory as
youtube_integration.py
.
You can view the running version here.