I was trying to work with a playlist in Pytube, but my playlist was always shown to be empty by Pytube even though there are videos in my playlist. I'm running the latest version of pytube (10.8.5). Is there any way to fix this? I've tried the regex answer, but it didn't work for me.
I would greatly appreciate any answer!
Here is the code that I was testing:
from pytube import Playlist
playlist = Playlist("https://www.youtube.com/playlist?list=PLBN5m5aVVqE7kCNHZN-NBHDUIdnpp0XU_")
print(len(playlist.video_urls)) #Returns 0 even though there are 2 videos in my playlist