question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Playlist.video_urls giving empty list for a playlist url

See original GitHub issue

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.

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:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:33

github_iconTop GitHub Comments

14reactions
tfdahlincommented, Dec 3, 2020

Hi, I’ll try to look into this problem soon

9reactions
alexandermarquesmcommented, Dec 6, 2020

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

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found