These are python scripts to extract JSON data from the Youtube Data API. More specifically, using these scripts to extract from data from handball videos that can be fed into a database for a web-application to read from.
- Installing a Python virtual environment within the directory is highly recommended to use this script in isolation from other dependencies from different projects.
- Installing the dependencies. Run this in the command line within the directory
pip freeze > requirements.txt
to get your dependencies. Thenpip install -r requirements.txt
for installation. - Get your Youtube API key and create a
.env
file within the directory that references your API key. Check out this video to learn how to do this. - Activate the Python virtualenv
(your-virtual-env)\Scripts\activate
- Running the script.
python main.py
orpython3 main.py