fix pagination for facebook group scraper

This commit is contained in:
sahrul
2020-10-21 21:30:00 +07:00
parent 1a219fd2b6
commit 7a0f68b7ec

View File

@@ -339,7 +339,7 @@ class FacebookGroupScraper(FacebookCommonScraper):
while (data := pageletDataPattern.search(r.text).group(0)[pageletDataPrefixLength:]):
# As on the user profile pages, the web app sends a lot of additional parameters, but those all seem to be unnecessary (although some change the response format, e.g. from JSON to HTML)
r = self._get(
f'https://www.facebook.com/ajax/pagelet/generic.php/GroupEntstreamPagelet',
f'https://upload.facebook.com/ajax/pagelet/generic.php/GroupEntstreamPagelet',
params = {'data': data, '__a': 1},
headers = headers,
)