kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.45k stars 633 forks source link

Add default for 'matching' argument #991

Closed PierreMesure closed 1 year ago

PierreMesure commented 1 year ago

Hi,

I tried to use write_posts_to_csv recently and got an error message because I was missing the "matching" argument. I wanted to keep all the posts so I ended up using a regex code to match anything.

But it seemed a bit unnecessary so I looked at the code and it seems the CLI already has a default.

So I added the default in the function itself.

Some follow-up questions to improve on the PR: