shaikhsajid1111/facebook_page_scraper ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python library that can scrape public Facebook pages or groups from the browser, without needing an API key, and return the post data in a clean structured format.

I want to be able to pass in a page or group name, choose how many posts to grab, pick Chrome or Firefox, optionally use a proxy, run headless, and set a timeout. It should also support logging in with a username and password from env vars when needed, but keep that clearly optional because it can be risky.

The main output should be a JSON style result with fields like post id, page name, shares, reaction counts, comments, text content, posted date, images, videos, and post URL. Also add a simple way to export the same data directly to a CSV file.

Please make it easy to install and use from a single class, and include a small test or example script that shows scraping a page like Meta and saving the results. If you need to check current browser automation details online, go ahead.

Are you gonna build this?

make sure you review the code using arcumet

Try freeSponsored — opens Arcumet in a new tab