Facebook ad library scraper avatar
Facebook ad library scraper

Pricing

$0.75 / 1,000 ads

Go to Store
Facebook ad library scraper

Facebook ad library scraper

curious_coder/facebook-ads-library-scraper

Developed by

Curious Coder

Maintained by Community

Scrape facebook ads search and ads run by facebook pages - Fast and lightweight

2.2 (10)

Pricing

$0.75 / 1,000 ads

138

Monthly users

811

Runs succeeded

>99%

Response time

51 days

Last modified

2 months ago

RE

Infinite retry when an account doesn't have ads

Closed
ReverseTech opened this issue
4 months ago

{ "error": "Ads not found", "errorCode": "ADS_NOT_FOUND", "url": "" }

The actor run never ends if an account doesn't have ads. Contrary to the error, the account seems to have ads?

curious_coder avatar

They are not infinite retries, it will only retry 4 times per resource. If they all fail it will continue to scraping next resource. All those messages you see were eventually succeeded before they exceed 4 retries, So don't worry about it

If you think it didn't scrape urls where there were ads, provide a sample url that I can use to check

RE

ReverseTech

4 months ago

They are certainly more than 4 tries, please see the screenshot. From my experience, this goes on forever (but I only left it a few hours for obvs reasons).

curious_coder avatar

I see. From your screenshot it looks like an issue. But from the run you've shared, I can't find that issue.

From the run you've shared I see only 15 records which have ADS_NOT_FOUND status which is lesser than the number of search urls you've passed (34)

Please share the correct run ID so that I can check and fix it

RE

ReverseTech

4 months ago

It is the same run, I just clicked on "View run" and then exported it as JSON. I can share the JSON in a private conversation if needed.

curious_coder avatar

But if you open the full dataset in JSON mode by clicking on preview full data in new tab, you can see there are no duplicates in it

RE

ReverseTech

4 months ago

There are. Are we both looking at the run id = 3JIM5uqhEQ7K24wx4 ?

curious_coder avatar

You checked in the downloaded JSON file, may be there is a bug in apify that causes this. Try opening the full json directly on apify

RE

ReverseTech

4 months ago

It's not a Apify bug as the run never stops and continues forever. All my runs right now time out after an hour. Can you please have a look?

RE

ReverseTech

4 months ago

Hey, can I get an update on this? Do you want me to send you any JSON files? All my runs time out because of this. And every time I look at the file, half of the file is just this error...

curious_coder avatar

Okay, just found the bug and fixed it, Thanks for being persistent about the issue and helping to identify and fix the issue

Pricing

Pricing model

Pay per result 

This Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.

Price per 1,000 items

$0.75