This repository was archived by the owner on Nov 11, 2019. It is now read-only.
Use youtube-dl as a library#54
Open
redapple wants to merge 4 commits intopyvideo:masterfrom
redapple:youtube-dl
Open
Use youtube-dl as a library#54redapple wants to merge 4 commits intopyvideo:masterfrom redapple:youtube-dl
redapple wants to merge 4 commits intopyvideo:masterfrom
redapple:youtube-dl
Conversation
steve/scrapers.py
Outdated
Contributor
There was a problem hiding this comment.
Is there a reason not to put this with the other imports?
steve/scrapers.py
Outdated
Contributor
There was a problem hiding this comment.
Are there docs where they list the elements they return? I don't know why some of these fields are changing.
Author
There was a problem hiding this comment.
I see https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L1452
return {
'id': video_id,
'uploader': video_uploader,
'uploader_id': video_uploader_id,
'upload_date': upload_date,
'title': video_title,
'thumbnail': video_thumbnail,
'description': video_description,
'categories': video_categories,
'tags': video_tags,
'subtitles': video_subtitles,
'automatic_captions': automatic_captions,
'duration': video_duration,
'age_limit': 18 if age_gate else 0,
'annotations': video_annotations,
'webpage_url': proto + '://www.youtube.com/watch?v=%s' % video_id,
'view_count': view_count,
'like_count': like_count,
'dislike_count': dislike_count,
'average_rating': float_or_none(video_info.get('avg_rating', [None])[0]),
'formats': formats,
'is_live': is_live,
'start_time': start_time,
'end_time': end_time,
}
Author
There was a problem hiding this comment.
Looks like "fulltitle" and "title" differ when title is truncated: https://github.com/rg3/youtube-dl/blob/b3613d36da14ab527166326707c0f911d192144d/youtube_dl/YoutubeDL.py#L1400
but I haven't found "fulltitle" when using a ydl
Contributor
|
@redapple channels are a good thing to test. I scrape those too. |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I got frustrated about the lack of progress information when running steve-cmd fetch,
so I wanted to use youtube-dl as a library to get metadata from playlists
Sample output for PyCon India 2015
@willkg ,
what can I test other than YouTube playlists?