https://github.com/napjon/youtube-api
https://github.com/napjon/youtube-api
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/napjon/youtube-api
- Owner: napjon
- Created: 2021-11-04T00:31:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-04T01:23:56.000Z (over 4 years ago)
- Last Synced: 2025-02-01T17:22:07.365Z (over 1 year ago)
- Language: HTML
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
There are several files in this directory
* `analysis.ipynb` is the Jupyter Notebook that built the actual script
* `analysis.html` is the HTML exported version, so you can just read static HTML, instead of spawn Jupyter server. The analysis and questions answered is listed in the HTML file
* `tags.xlsx` The tags file
* `analysis.py` the actual script, please read below.
* `requirements.txt` Python packages dependencies used
## Actual Script
This script can be used run continuously ETL pipeline.
Before running the script, install the python packages dependencies
```
$pip install -r requirements.txt
```
Change the global variables, including
* `API_KEY` : Create the api key credentials in GCP. Go to Youtube Data V3 API -> Enable API -> API & Credentials -> Create API Key -> copy the api key
* `MySQL_URI`: Change the URI to reflect MySQL destination table
* `KEYWORD`: Change the keyword
Run the script
```
$python analysis.py
```