Playlist.video_urls giving empty list for a playlist url
See original GitHub issueI’m following the sample in readme to get the videos in a playlist but it return a empty list when I call Playlist.video_urls.
Here is my test code and it run on Python-3.7.9 and pytube-10.0.0.
>>> from pytube import Playlist
>>> p = Playlist('https://www.youtube.com/playlist?list=PLS1QulWo1RIaJECMeUT4LFwJ-ghgoSH6n')
>>> p
1
[]
>>> p.title
'Python Tutorial for Beginners (For Absolute Beginners)'
>>> p.playlist_id
'PLS1QulWo1RIaJECMeUT4LFwJ-ghgoSH6n'
>>> p.playlist_url
'https://www.youtube.com/playlist?list=PLS1QulWo1RIaJECMeUT4LFwJ-ghgoSH6n'
>>> p.video_urls
[]
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:33
Top Results From Across the Web
Playlist.video_urls giving empty list for a playlist url · Issue #848
I'm following the sample in readme to get the videos in a playlist but it return a empty list when I call Playlist.video_urls....
Read more >python 3.x - PyTube3 Playlist returns empty list - Stack Overflow
I looked into the source a bit and it seemed that it would load the html and then perform a regex search for...
Read more >PlaylistItems | YouTube Data API - Google Developers
list : Returns a collection of playlist items that match the API request parameters. You can retrieve all of the playlist items in...
Read more >API — pytube 12.1.2 documentation
Retrieve a list of YouTube video URLs trimmed at the given video ID. i.e. if the playlist has video IDs 1,2,3,4 calling trimmed(3)...
Read more >Change playlist privacy setting - YouTube Help
If you're the owner of a playlist, you can make your playlist public, ... Anyone with the video link can watch and share...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, I’ll try to look into this problem soon
it worked!! thank you very much dude s2 @tfdahlin
I think I needed to uninstall the old version first, right? because I had already installed it directly from the repository