Add --no-shorts flag to filter Shorts from latest results
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user