Skip to content

Instantly share code, notes, and snippets.

@oookoook
oookoook / actor.js
Created February 8, 2019 21:48
Apify crawler
const Apify = require('apify');
const accents = require('remove-accents');
function updateLocation(location, offer, type) {
//console.log('update called for:');
//console.dir(offer);
if(!(offer.price && offer.area) || !offer.pricePerMeter ) {
console.log('ignored - insufficient data');
}