Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to download latest 5 videos from a youtube user? #1444

Closed
pahud opened this issue Sep 17, 2013 · 4 comments
Closed

how to download latest 5 videos from a youtube user? #1444

pahud opened this issue Sep 17, 2013 · 4 comments

Comments

@pahud
Copy link

@pahud pahud commented Sep 17, 2013

I was trying to download lastest 5 videos from this user and I tried this approach:

$ youtube-dl --max-downloads 5 http://www.youtube.com/user/ChinaTimes

but youtube-dl was reading all its video ids for a long time.

Is there another good approach?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 17, 2013

Running youtube-dl http://www.youtube.com/user/ChinaTimes --playlist-end 5 would normally work. The problem is that the user has more than 100000 videos, which is the limit of the youtube api.
In theory we could only extract the first 5 video ids or a reasonable number of them without failing, but it's not trivial.

@TigersWay
Copy link

@TigersWay TigersWay commented Dec 4, 2013

Hop ... :-)

Could it be done with some feed/rss?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 22, 2014

With b7ab059, if you use youtube-dl http://www.youtube.com/user/ChinaTimes --playlist-end 5 it will only download the first page of the playlist.
It will be available in the next version, but if you need it, you can use the version from the git repo.
Thanks for the report.

@jaimeMF jaimeMF closed this Jan 22, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Jan 22, 2014

Since --max-downloads is pertinent to video filtering, you want --playlist-end. The speedup has made it into youtube-dl 2014.01.22.4. Type youtube-dl -U to update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.