pytube icon indicating copy to clipboard operation
pytube copied to clipboard

Pytube Playlist object only returns the first 203 videos from a 1,000 video playlist [BUG]

Open classic-sasquatch-behavior opened this issue 2 years ago • 3 comments

It seems that the Playlist object only grabs the first 203 videos of this massive playlist I'm trying to download. Is there a way around this, either within pytube or by shortening the playlist before giving it to pytube? (it's not my playlist so I can't split it up manually)

Thank you for contributing to PyTube. Please remember to reference Contributing.md

github-actions[bot] avatar Apr 02 '22 17:04 github-actions[bot]

Hello @classic-sasquatch-behavior ,

could you please provide example URL of a playlist? It is hard to debug without an example.

For me, this works: from pytube import Playlist p = Playlist('https://youtube.com/playlist?list=PLCk9xy9nZ8GaR77HEbW6kmh99lpyh7yM1') #some hip-hop playlist containing over 203 videos videos = p.videos

videos will be list of YouTube.

marnagy avatar Apr 03 '22 12:04 marnagy

I had the same problem with a playlist with 800 videos. I went step by step in the python notebook file while downloading the playlist. It should be noted that it took some time, it took me 2 minutes to pull 800 videos as an object. Sometimes it is being interrupted, it is necessary to try again.

burakgonullu avatar Apr 10 '22 12:04 burakgonullu