From 31219d64ba89fadc29c6262b2f1afeb67dbc9f78 Mon Sep 17 00:00:00 2001 From: Yomguithereal Date: Fri, 3 Nov 2023 15:54:17 +0100 Subject: [PATCH] More robust button selectors --- minet/facebook/emulated_scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minet/facebook/emulated_scraper.py b/minet/facebook/emulated_scraper.py index 6aecff3b03..4a3f13b975 100644 --- a/minet/facebook/emulated_scraper.py +++ b/minet/facebook/emulated_scraper.py @@ -13,8 +13,8 @@ from minet.facebook.types import FacebookComment -VIEW_MORE_COMMENTS_RE = re.compile(r"View\s+.+more\s+comments?", re.I) -VIEW_MORE_REPLIES_RE = re.compile(r"View\s+.+more\s+replies", re.I) +VIEW_MORE_COMMENTS_RE = re.compile(r"View\s+.*more\s+comments?", re.I) +VIEW_MORE_REPLIES_RE = re.compile(r"View\s+.*more\s+replies", re.I) VIEW_MORE_SUBREPLIES_RE = re.compile(r"^\s*\d+\s+replies", re.I)