Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
YouTube channel pagination limit #3794
Comments
|
I used this to get the newest 1048 videos, so I can at least extract 2096 videos from a channel by running without and with the patch: sed -i 's/&sort=da//g' youtube_dl/extractor/youtube.pyI don't think there's an easy way to get all the videos when there is more than 2096 without using the API, so I'm closing. |
|
I am having the same issue - e.g.: I need a fix for this!!! - What are you doing with sed? |
|
Hi @electroweak, I'm patching This requires to run git clone https://github.com/rg3/youtube-dl.git
sed -i 's/&sort=da//g' youtube-dl/youtube_dl/extractor/youtube.py
./youtube-dl/youtube_dl/__main__.py "$THE_CHANNEL_URL"This will retrieve the ~1048 newest videos, so if you ran previously with the other sorting, you'll get ~2096 videos. It's better, but I currently don't know a way using web scraping to get the remaining videos (if the channel has more than ~2096 videos). An idea is to contact the channel owner, I believe they have the full list of their videos in the YouTube admin area. Another possibility is to use the YouTube API, but I didn't investigate on this yet. |
Hi,
I'm trying to download all the videos from this channel.
youtube-dlfinds only 1048 videos during the pagination extraction, but it looks like this channel has more than that.In fact the YouTube web pagination seems limited to 1048 videos too, but when changing the sort order, we can see that it don't covers all the videos.
Is there any way to fetch all the videos on a channel with more than 1048 videos? Or at least to try both sort orders to increase the limit to 2096?