Added mecum processor

master
Edward Peterson 3 years ago
parent 7c2f5bb2d9
commit eb27b75d4d

@ -4,6 +4,7 @@ const superagent = require('superagent');
module.exports = {
cronString: '0 22 * * *',
run: async function () {
return;
const startingPoint = 'https://topclassiccarsforsale.com/amc';
const browser = await puppeteer.launch({
headless: true

@ -0,0 +1,20 @@
const genericBootstrapFactory = require("./generics/generic-bootstrap");
const genericVinParserFactory = require("./generics/generic-vin-parser");
module.exports = {
execute: genericBootstrapFactory({
baseUrl: 'mecum.com',
pageLoadIndicator: 'html body div#__next main#page-content div.Container_containerW__RTJwy.Container_paddingBtm__RIfcP article.innerWrap section.LotHeader_lotHeader__9tt91 div.LotHeader_gallerySection__LZQOt',
vinSelector: 'html body div#__next main#page-content div.Container_containerW__RTJwy.Container_paddingBtm__RIfcP article.innerWrap section.LotHeader_lotHeader__9tt91 div.LotHeader_headerBottom__F8FRR div.LotHeader_meta__3S0lZ div.LotHeader_odometerSerial___fuHb div p',
carouselTrigger: 'html body div#__next main#page-content div.Container_containerW__RTJwy.Container_paddingBtm__RIfcP article.innerWrap section.LotHeader_lotHeader__9tt91 div.LotHeader_gallerySection__LZQOt section.ImageGallery_imageGallery__qITSq.LotHeader_gallery__OrqMX.image-gallery.ImageGallery_standard__a65TU div.ImageGallery_mainImage__GFBTp button.ImageGallery_imageButton__ld6Eg'
}),
baseUrl :'mecum.com',
parseVIN: genericVinParserFactory({
vinElementSelector: `html body div#__next main#page-content div.Container_containerW__RTJwy.Container_paddingBtm__RIfcP article.innerWrap section.LotHeader_lotHeader__9tt91 div.LotHeader_headerBottom__F8FRR div.LotHeader_meta__3S0lZ div.LotHeader_odometerSerial___fuHb div p`
}),
parseMileage: async function (page) {
return null;
}
}
Loading…
Cancel
Save