From d9cb3c379cabd69ff9ea2e17d6690c9898322d9c Mon Sep 17 00:00:00 2001 From: Avi Peretz Date: Thu, 28 Nov 2019 11:58:41 +0200 Subject: [PATCH] support comment count for facebook. --- youtube_dl/extractor/facebook.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 41f000771..234ff3e9f 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -485,6 +485,7 @@ class FacebookIE(InfoExtractor): likes_count = parse_count(self._extract_likes(webpage, tahoe_data)) shares_count = parse_count(self._extract_meta_count(['sharecount'], webpage, tahoe_data, 'shares')) + comment_count = parse_count(self._extract_meta_count(['commentCount'], webpage, tahoe_data, 'shares')) info_dict = { 'id': video_id, @@ -500,6 +501,7 @@ class FacebookIE(InfoExtractor): 'like_count': likes_count, 'share_count': shares_count, 'subtitles': subtitles, + 'comment_count': comment_count } if uploader_id: info_dict['uploader_like_count'] = FacebookAjax(self, webpage, uploader_id).page_likes