This project demonstrates how to combine:
- YouTube Data API to list channel videos with eTag caching
- yt-dlp for metadata/detailed fallback scraping
- pytube for single-video quick checks
- All while storing your
YOUTUBE_API_KEY
and PROXIES in a.env
file.
Clone or copy this repo structure.
$ python -m venv venv
$ source venv/bin/activate # or venv\Scripts\activate on Windows
$ pip install -r requirements.txt
NODE_ENV=
YOUTUBE_API_KEY=
PROXIES=
E.G:
{
"urls": [
"https://www.youtube.com/@muni_gurume",
"https://www.youtube.com/@Hasida",
"https://www.youtube.com/@tamo__tyan"
]
}
python main.py \
--use-api \
--dump-json data/output/merged.json \
--dump-csv data/output/merged.csv