YouTube Search (Last 7 Days)
Prerequisites
python3youtube-searchlibrary installed (pip package name is typicallyyoutube-search)
Quick start
python3 scripts/search_youtube_last_week.py "your query" --days 7 --max-results 25 --json
Notes
- The script filters results by parsing the human publish time (e.g., "2 days ago").
- If publish time cannot be parsed, results are excluded unless
--include-unknownis set. - Output is JSON with
results[]entries and a computedurlfield.