not fatal for now.

This commit is contained in:
Avi Peretz 2019-06-22 22:59:11 +03:00
parent 3f8ec99719
commit c8a0a6d791

View File

@ -614,10 +614,13 @@ class FacebookAjax:
@property
def page_likes(self):
return parse_count(
self._extractor._search_regex(r'\/span>([\d,]+) likes', self.hover, 'uploader_likes', default=None)
)
try:
return parse_count(
self._extractor._search_regex(r'\/span>([\d,]+) likes', self.hover, 'uploader_likes', default=None)
)
except:
return None
def _get_request_url(self, page_id):
return update_url_query(self.HOVER_URL_TEMPLATE,
{