Apify and Crawlee Official Forum

Updated 4 months ago

Only want to return one result for these scrapers

I'm currently enriching data I got from Storeleads on about 10k eCommerce companies I'm doing outreach to. The data comes with store name, Facebook URL, & Instagram URL, so I'm using the "Facebook Ads Scraper" and "Instagram Profile Scraper" to enrich these companies.

I want to find the last post & latest ad (startDate/endDate fields & ad description for FB; latestPost & likes/cmments for IG).

The problem is I get thousands of columns with a bunch of other metadata I don't need. I also can't omit the "results" column because I'll lose all results instead of the first one.

Anyone know a way to grab the latest result these from the output within Apify? I'm not savvy with code so preferably without any console wizardry.
Attachment
image.png
R
1 comment
hi, it's unfortunately not possible to limit the number of nested items currently. You can however try to take a look at Advanced options when exporting the dataset, unwind results and process only the first item on your side
Add a reply
Sign up and join the conversation on Discord