Extract Facebook group post in chronological order (instead of by last comment)

Fixes #66
This commit is contained in:
JustAnotherArchivist
2020-08-11 20:47:42 +00:00
parent 966a6ebd8e
commit eee5794ff9

View File

@@ -189,7 +189,7 @@ class FacebookGroupScraper(FacebookCommonScraper):
pageletDataPrefixLength = len('"GroupEntstreamPagelet",')
spuriousForLoopPattern = re.compile(r'^for \(;;\);')
baseUrl = f'https://www.facebook.com/groups/{self._group}/'
baseUrl = f'https://www.facebook.com/groups/{self._group}/?sorting_setting=CHRONOLOGICAL'
r = self._get(baseUrl, headers = headers)
if r.status_code == 404:
logger.warning('Group does not exist')