Facebook ad library scraper avatar

Facebook ad library scraper

Try for free

Pay $0.75 for 1,000 ads

Go to Store
Facebook ad library scraper

Facebook ad library scraper

curious_coder/facebook-ads-library-scraper
Try for free

Pay $0.75 for 1,000 ads

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

RE

Infinite retry when an account doesn't have ads

Closed

ReverseTech opened this issue
a month 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

a month 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

25 days 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

25 days 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

23 days 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

19 days 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

Developer
Maintained by Community

Actor Metrics

  • 459 monthly users

  • 60 stars

  • >99% runs succeeded

  • 4.6 days response time

  • Created in Aug 2023

  • Modified 9 hours ago