Update 'processors/ebay.processor.js'

crawler
Edward Peterson 3 years ago
parent decd86eed9
commit 98c2d2fe11

@ -37,7 +37,9 @@ module.exports = {
sources = sourcesFromThumbnailGallery;
}
const descriptionIframe = await page.$('#desc_ifr');
console.log('has description iframe?', !!descriptionIframe);
const descriptionUrl = await page.evaluate(el => el.getAttribute('src'), descriptionIframe)
console.log('has description URL?', descriptionUrl);
await page.goto(descriptionUrl);
//check the description if it has viewall button
const hasViewAllButton = !!(await page.$('.thumbnail-list-wrapper > a.cgg-btn:nth-child(6)'))

Loading…
Cancel
Save