mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-13 04:48:28 +03:00
fix pagination for facebook group scraper
This commit is contained in:
@@ -339,7 +339,7 @@ class FacebookGroupScraper(FacebookCommonScraper):
|
|||||||
while (data := pageletDataPattern.search(r.text).group(0)[pageletDataPrefixLength:]):
|
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)
|
# 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(
|
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},
|
params = {'data': data, '__a': 1},
|
||||||
headers = headers,
|
headers = headers,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user