mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 20:47:21 +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:
|
||||
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):
|
||||
value = self._extract_meta_count(['postViewCount', 'viewCount'], webpage, tahoe_data, 'likes')
|
||||
if value:
|
||||
|
Loading…
x
Reference in New Issue
Block a user