Zillow Scraper
async ({ item, data }) => {
if (!data.schools || !data.schools.length) {
return null; // omit output
}
item.schools = data.schools; // add new array data
item.photos = undefined; // remove the photos array from the output, making it CSV friendly
delete item.photos; // works as well
return item; // need to return the item here, otherwise your dataset willbe empty
}
