Skip to content

Commit

Permalink
Add default for matching (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMesure authored Oct 30, 2023
1 parent 392be1e commit d0c74ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion facebook_scraper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down

0 comments on commit d0c74ca

Please sign in to comment.