You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ListingExtractor/processors/classiccars.processor.js

21 lines
693 B
JavaScript

const genericBootstrapFactory = require("./generic-bootstrap");
const genericVinParserFactory = require("./generic-vin-parser");
const _ = require('lodash');
module.exports = {
execute: genericBootstrapFactory({
baseUrl: 'classiccars.com',
pageLoadIndicator: '#ListingCarousel',
vinSelector: 'li.p-vin > span:nth-child(2)',
carouselTrigger: 'div.swiper-slide-active > div > img.u-photo'
}),
baseUrl: 'classiccars.com',
parseVIN: genericVinParserFactory({
vinElementSelector: `li.border-btm.p-vin span.w40.d-inline-block.b.fs-14.gray`
}),
parseMileage: async function (page) {
return null;
}
//li.border-btm.p-vin span.w40.d-inline-block.b.fs-14.gray
}