Add --no-shorts flag to filter Shorts from latest results

This commit is contained in:
2026-04-07 22:29:29 +02:00
parent 12de3f13df
commit 2533b63597
2 changed files with 19 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ That feed is ordered by newest uploads, so fetching the first 3 entries gives th
python3 latest3.py "https://www.youtube.com/@ludwig/videos"
python3 latest3.py "@ludwig" --json
python3 latest3.py "https://www.youtube.com/@ludwig/videos" --limit 3 --json
python3 latest3.py "https://www.youtube.com/@ludwig/videos" --limit 3 --no-shorts
```
## Output fields
@@ -25,6 +26,12 @@ python3 latest3.py "https://www.youtube.com/@ludwig/videos" --limit 3 --json
- `url` - watch URL
- `published` - ISO-8601 timestamp from the feed
## Flags
- `--limit N` how many videos to return (1-20)
- `--json` output as JSON
- `--no-shorts` exclude URLs matching `/shorts/`
## Notes
- Works with `@handle` URLs and plain `@handle` input.