This is an episode guide for the Take Your Shoes Off podcast with Rick Glassman. The episode guide is available at https://tysoepisodeguide.azurewebsites.net/.
The episode guide is generated from Rick Glassman's YouTube Channel using the YouTube Data API.
This python program is used to generate the episode guide from the YouTube channel by querying the YouTube Data API.
All video information is internally stored in a sqlite database. The database is located in the db directory. The database is created and updated by the python program by running python setup.py install. The program will create the database if it does not exist, and update the database if it does exist.
The episode guide markdown file is used to generate the episode guide HTML file, which is located in the templates directory. The episode guide HTML file is used by the Flask app to display the episode guide.
- YouTube Data API
- Python 3.11+
- Flask
- request
- markdown
- pillow
- gunicorn
- Clone the repository
- Install the requirements with
pip install -r requirements.txt - Create and enable a virtual environment (venv) named "tyso" using the following steps:
- Open a terminal or command prompt.
- Navigate to the root directory of the repository using the
cdcommand. - Run the command
python -m venv tysoto create a virtual environment named "tyso". - On Windows, activate the virtual environment by running:
- For Command Prompt:
tyso\Scripts\activate.bat - For PowerShell:
.\tyso\Scripts\Activate.ps1
- For Command Prompt:
- On macOS and Linux, activate the virtual environment by running:
source tyso/bin/activate
- Create a
.envfile in the root directory of the repository. - Add the following to the
.envfile:API_KEY=<your_api_key> - Run
python setup.py installto generate the episode guide. - Run
python app.pyto run the Flask app. - Open
http://127.0.0.1:5000/in a browser to view the episode guide.
Contributions are welcome. Please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.