VOOZH about

URL: https://apify.com/ibraheemalani2/my-fb-ads-scraper

โ‡ฑ Facebook Ads Scraper ยท Apify


๐Ÿ‘ Facebook Ads Scraper avatar

Facebook Ads Scraper

Under maintenance

Pricing

Pay per usage

Go to Apify Store

Facebook Ads Scraper

Under maintenance

Scrape the Facebook Ads Library for any keyword. This actor extracts ad details and then visits each advertiser's page to capture valuable company info: websites, social links, and categories. Perfect for building high-quality lead lists from active advertisers automatically.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

๐Ÿ‘ ibraheem alani

ibraheem alani

Maintained by Community

Actor stats

4

Bookmarked

93

Total users

0

Monthly active users

a year ago

Last modified

Share

Scrape single-page in Python template

A template for web scraping data from a single web page in Python. The URL of the web page is passed in via input, which is defined by the input schema. The template uses the HTTPX to get the HTML of the page and the Beautiful Soup to parse the data from it. The data are then stored in a dataset where you can easily access them.

The scraped data in this template are page headings but you can easily edit the code to scrape whatever you want from the page.

Included features

  • Apify SDK for Python - a toolkit for building Apify Actors and scrapers in Python
  • Input schema - define and easily validate a schema for your Actor's input
  • Request queue - queues into which you can put the URLs you want to scrape
  • Dataset - store structured data where each object stored has the same attributes
  • HTTPX - library for making asynchronous HTTP requests in Python
  • Beautiful Soup - library for pulling data out of HTML and XML files

How it works

  1. Actor.get_input() gets the input where the page URL is defined
  2. httpx.AsyncClient().get(url) fetches the page
  3. BeautifulSoup(response.content, 'lxml') loads the page data and enables parsing the headings
  4. This parses the headings from the page and here you can edit the code to parse whatever you need from the page
    for heading in soup.find_all(["h1","h2","h3","h4","h5","h6"]):
  5. Actor.push_data(headings) stores the headings in the dataset

Resources

Getting started

For complete information see this article. To run the Actor use the following command:

$apify run

Deploy to Apify

Connect Git repository to Apify

If you've created a Git repository for the project, you can easily connect to Apify:

  1. Go to Actor creation page
  2. Click on Link Git Repository button

Push project on your local machine to Apify

You can also deploy the project on your local machine to Apify without the need for the Git repository.

  1. Log in to Apify. You will need to provide your Apify API Token to complete this action.

    $apify login
  2. Deploy your Actor. This command will deploy and build the Actor on the Apify Platform. You can find your newly created Actor under Actors -> My Actors.

    $apify push

Documentation reference

To learn more about Apify and Actors, take a look at the following resources:

You might also like

Facebook Ads Library Scraper

api-empire/facebook-ads-library-scraper

Facebook Ads Library Scraper extracts ads from the Facebook Ads Library with full details. Capture creatives, copy, spend ranges, impressions, targeting data, advertiser info, and timestamps. Ideal for competitor research, campaign analysis, and structured ad intelligence workflows.

75

5.0

Meta/Facebook Ads Library Scraper

alwaysprimedev/facebook-ads-library-scraper

Scrape ads, creatives, advertisers, and landing pages from the Facebook (Meta) Ad Library by keyword or advertiser โ€” fast, structured JSON.

Facebook Ads Library Scraper

scraper-engine/facebook-ads-library-scraper

The Facebook Ads Library Scraper extracts ad data from Facebookโ€™s Ad Library, including advertiser details, ad text, impressions, and targeting info. Ideal for ad research, marketing insights, and competitor analysis, it delivers clean, structured data for analysis or integration via API.

๐Ÿ‘ User avatar

Scraper Engine

403

4.2

Facebook Ads Scraper

alizarin_refrigerator-owner/facebook-ads-scraper

Scrape the public Facebook Ad Library to find competitor ads by page ID or search term. Features: -Scrape ads by Facebook Page ID -Search ads by keyword -Filter by country and status -Extract ad creatives, text, and targeting info

Facebook Ads Library Scraper

simpleapi/facebook-ads-library-scraper

Facebook Ads Library Scraper extracts ads from the Facebook Ads Library, capturing ad creatives, texts, impressions, spend ranges, regions, advertiser info, start/end dates, and transparency data. Ideal for competitor research, ad monitoring, political ad tracking, and automated marketing insights.