0

I've trying to scrape an img src but the console keeps timing out without giving me anything.

async function nikeScraper(){
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();

const images = await page.evaluate(() => {
    const getImages = document.querySelectorAll(".product-card__hero-image > picture > img")

    return getImages
})

await browser.close();

console.log(getImages)
}
BFP
  • 124
  • 1
  • 9

0 Answers0