Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YouTube] Add ability to download more playlist metadata: view count, description, upload date, and annotations. It could be called --write-playlist-description and --write-playlist-json #15199

Open
5 of 8 tasks
ghost opened this issue Jan 9, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 9, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.01.07. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.01.07

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

I want to analyze statistics of Youtube playlists. I read the readme and found the options --write-description and --write-info-json to download descriptions and JSON metadata for individual videos. However, to the best of my knowledge there currently is no way to download that information from playlists. I ctrl+f'd playlist and metadata a lot and tried a bunch of commands, so I'm pretty sure about this.

The closest command to what I want is I found is youtube-dl --skip-download --flat-playlist --dump-single-json [playlist_id]

This dumps per-video id and title, and also dumps some of the playlist metadata I want, specifically the playlist title and playlist uploader (in the keys "uploader", "uploader_id", and "uploader_url").

What I would like is for --dump-single-json or a similar command, like --dump-playlist-json, to be able to dump more information on the playlist.

The most important playlist information to get is the view count, description, and upload or update date of the playlist.

sample 0

Is there a command that can get these data, or can this feature be added?

Additionally, I've noticed on some playlists that there is a different view with an additional uploader and comment section per video. Most playlists do not use these fields, but it's good information when it is there, so I want it too.

sample datas

For example, this playlist redirects the url to &disable_polymer=true, showing a view with uploader information. I have also noticed that some playlists, which don't default to this detailed view, may have per-video comments when the view is shown. It's pretty rare, but that information might be useful to get when doing an analysis (perhaps even because it's so rare).

This is an example of a playlist that uses per-video annotations. Note that the default view doesn't show the annotations! Regardless, I'd like to be able to download those too if possible.

So the main playlist data to get are the view count, the description, and the update date (is there a separate uploaded or created date too?). Video count would also be useful, although it's possible to derive from the JSON. And if possible I'd like to be able to get the per-video comments/annotations fields too.

I would like to get these playlist metadatas. Can you add --write-playlist-description and --write-playlist-metadata features to get them?

(playlist thumbnail would be good, too)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants