option to limit number of pages, youtube. #7096

Closed
opened 2026-02-21 02:25:51 -05:00 by deekerman · 2 comments
Owner

Originally created by @wintermutecx on GitHub (Feb 26, 2016).

I download videos from PBS newshour (youtube.com/user/PBSNewsHour/videos )with the option to only grab ones that are up to 5 days old, but the script has to run through over 100 pages and 10,000 videos to match the date. Is it possible to add a new option to also limits the number of initial pages that are downloaded? Thanks :)

Originally created by @wintermutecx on GitHub (Feb 26, 2016). I download videos from PBS newshour (youtube.com/user/PBSNewsHour/videos )with the option to only grab ones that are up to 5 days old, but the script has to run through over 100 pages and 10,000 videos to match the date. Is it possible to add a new option to also limits the number of initial pages that are downloaded? Thanks :)
Author
Owner

@dstftw commented on GitHub (Feb 26, 2016):

You can limit according to playlist items's indexes.

--playlist-start NUMBER          Playlist video to start at (default is 1)
--playlist-end NUMBER            Playlist video to end at (default is last)
--playlist-items ITEM_SPEC       Playlist video items to download. Specify
                                 indices of the videos in the playlist
                                 separated by commas like: "--playlist-items
                                 1,2,5,8" if you want to download videos
                                 indexed 1, 2, 5, 8 in the playlist. You can
                                 specify range: "--playlist-items
                                 1-3,7,10-13", it will download the videos
                                 at index 1, 2, 3, 7, 10, 11, 12 and 13.
@dstftw commented on GitHub (Feb 26, 2016): You can limit according to playlist items's indexes. ``` --playlist-start NUMBER Playlist video to start at (default is 1) --playlist-end NUMBER Playlist video to end at (default is last) --playlist-items ITEM_SPEC Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13. ```
Author
Owner

@wintermutecx commented on GitHub (Feb 26, 2016):

That certainty speeds things up, thanks kindly :) I hadn't realized it was a playlist :D

@wintermutecx commented on GitHub (Feb 26, 2016): That certainty speeds things up, thanks kindly :) I hadn't realized it was a playlist :D
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#7096
No description provided.