mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 23:37:18 +08:00
adding option for likes extraction
This commit is contained in:
parent
2b594af6f0
commit
e23f867b39
@ -552,6 +552,10 @@ class FacebookIE(InfoExtractor):
|
|||||||
if values:
|
if values:
|
||||||
return values[-1]
|
return values[-1]
|
||||||
|
|
||||||
|
values = re.findall(r'"reaction_count"\s*:\s*{\s*"count"\s*:\s*(\d+)', tahoe_data.secondary)
|
||||||
|
if values:
|
||||||
|
return values[-1]
|
||||||
|
|
||||||
def _extract_views(self, webpage, tahoe_data):
|
def _extract_views(self, webpage, tahoe_data):
|
||||||
value = self._extract_meta_count(['postViewCount', 'viewCount'], webpage, tahoe_data, 'likes')
|
value = self._extract_meta_count(['postViewCount', 'viewCount'], webpage, tahoe_data, 'likes')
|
||||||
if value:
|
if value:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user