[instagram] provide 'description' metadata (#310)
This commit is contained in:
@@ -55,6 +55,10 @@ class InstagramExtractor(Extractor):
|
|||||||
'owner_id': media['owner']['id'],
|
'owner_id': media['owner']['id'],
|
||||||
'username': media['owner']['username'],
|
'username': media['owner']['username'],
|
||||||
'fullname': media['owner']['full_name'],
|
'fullname': media['owner']['full_name'],
|
||||||
|
'description': text.parse_unicode_escapes('\n'.join(
|
||||||
|
edge['node']['text']
|
||||||
|
for edge in media['edge_media_to_caption']['edges']
|
||||||
|
)),
|
||||||
}
|
}
|
||||||
|
|
||||||
medias = []
|
medias = []
|
||||||
@@ -172,6 +176,7 @@ class InstagramImageExtractor(InstagramExtractor):
|
|||||||
r"/44877605_725955034447492_3123079845831750529_n.jpg",
|
r"/44877605_725955034447492_3123079845831750529_n.jpg",
|
||||||
"keyword": {
|
"keyword": {
|
||||||
"date": "type:datetime",
|
"date": "type:datetime",
|
||||||
|
"description": str,
|
||||||
"height": int,
|
"height": int,
|
||||||
"likes": int,
|
"likes": int,
|
||||||
"media_id": "1922949326347663701",
|
"media_id": "1922949326347663701",
|
||||||
@@ -198,6 +203,7 @@ class InstagramImageExtractor(InstagramExtractor):
|
|||||||
"url": "8f38c1cf460c9804842f7306c487410f33f82e7e",
|
"url": "8f38c1cf460c9804842f7306c487410f33f82e7e",
|
||||||
"keyword": {
|
"keyword": {
|
||||||
"date": "type:datetime",
|
"date": "type:datetime",
|
||||||
|
"description": str,
|
||||||
"height": int,
|
"height": int,
|
||||||
"likes": int,
|
"likes": int,
|
||||||
"media_id": "1923502432034620000",
|
"media_id": "1923502432034620000",
|
||||||
|
|||||||
Reference in New Issue
Block a user