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/bringatrailer.processor.js

18 lines
708 B
JavaScript

const genericBootstrapFactory = require("./generics/generic-bootstrap");
const genericVinParserFactory = require("./generics/generic-vin-parser");
const _ = require('lodash')
module.exports = {
execute: genericBootstrapFactory({
pageLoadIndicator: '.gallery',
vinSelector: 'body > main > div.listing > div:nth-child(3) > div.column.column-right.column-right-force > div.essentials > div:nth-child(5) > ul > li:nth-child(1) > a',
carouselTrigger: '.gallery > a:nth-child(1)'
}),
baseUrl: 'bringatrailer.com',
parseVIN: genericVinParserFactory({
vinElementSelector: `div.item ul li`
}),
parseMileage: async function (page) {
return null;
}
}