From d0c74caa74f5c3801260157f70ae788a15e7487e Mon Sep 17 00:00:00 2001 From: Pierre Date: Mon, 30 Oct 2023 05:47:44 +0100 Subject: [PATCH] Add default for matching (#991) --- facebook_scraper/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/facebook_scraper/__init__.py b/facebook_scraper/__init__.py index c9eecdff..e030bb9b 100644 --- a/facebook_scraper/__init__.py +++ b/facebook_scraper/__init__.py @@ -466,7 +466,7 @@ def handle_pagination_url(url): output_file.write(",") match = None if post["text"]: - match = re.search(kwargs.get("matching"), post["text"], flags=re.IGNORECASE) + match = re.search(kwargs.get("matching", '.+'), post["text"], flags=re.IGNORECASE) if kwargs.get("not_matching") and re.search( kwargs.get("not_matching"), post["text"], flags=re.IGNORECASE ):