promisingcoder/MetaAdsCollector — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Python tool I can install and also run from the command line to collect ads from the Meta Ad Library without needing a Meta developer account or API key. I want to search by keyword, exact phrase, country, ad type, active or inactive status, and also collect ads from a specific Facebook page by URL, name, or page ID. For each ad, save useful details like page name, ad text, creative images or videos, spend, impressions, dates, platforms, languages, and audience info when available.

Please include exports to JSON, CSV, and JSONL, plus an option to download the media files. Add simple filters for spend, impressions, dates, media type, platform, and language. It should avoid saving duplicate ads across runs with a small local database option. Make it usable both in Python code and as a CLI, with clear examples, logging, retries, tests, and a short README.

Want more depth? Deep Reverse