jnsougata / aiotube

An Alternative to YouTube Public Data API v3
MIT License
69 stars 12 forks source link

Is there way to get the url from a Video('asdasd') #3

Closed JaxonBest closed 3 years ago

JaxonBest commented 3 years ago

I have a Playlist() But I want to get the URL out of each video... Is there a way to do so?

jnsougata commented 3 years ago

I have a Playlist() But I want to get the URL out of each video... Is there a way to do so?

Playlist(ID).videos will give you list of video objects ... so iterate though the list items and take item.url which will give you url for each video

or, video objects has .url attribute to get the url of the video

JaxonBest commented 3 years ago

Thanks.