Merge pull request #131 from gitshrl/facebook/fix-group-pagination

Fix pagination error for Facebook group scraper
This commit is contained in:
JustAnotherArchivist
2020-10-21 15:08:50 +00:00
committed by GitHub

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,
)