[flipagram] Add extractor
This commit is contained in:
parent
89e2fff2b7
commit
3fee7f636c
3 changed files with 111 additions and 0 deletions
|
@ -837,6 +837,13 @@ class InfoExtractor(object):
|
|||
'title': unescapeHTML(json_ld.get('headline')),
|
||||
'description': unescapeHTML(json_ld.get('articleBody')),
|
||||
})
|
||||
elif item_type == 'VideoObject':
|
||||
info.update({
|
||||
'title': unescapeHTML(json_ld.get('name')),
|
||||
'description': unescapeHTML(json_ld.get('description')),
|
||||
'upload_date': unified_strdate(json_ld.get('upload_date')),
|
||||
'url': unescapeHTML(json_ld.get('contentUrl')),
|
||||
})
|
||||
return dict((k, v) for k, v in info.items() if v is not None)
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue