Open
Description
info(server): client connected
info(http_client): redirecting to: GET https://sexyvoice.ai/en
info(browser): GET https://sexyvoice.ai/en 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/polyfills-42372ed130431b0a.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/ae727ed5-a59e030e17d2293e.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/3118-aebc40134b580d85.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/main-app-49638e27a072acfa.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/app/layout-102f0b8f52739bd0.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/5743-f4135533e75f638a.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/app/%5Blang%5D/layout-ff0b04facf79ba68.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/84-612ffc6490978cbe.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/7971-bb23ca54e98ba3d4.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/2053-652d45ddcf4e9884.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/6347-13c305aa0160d393.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/5784-6d103a5e7eda502a.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/app/%5Blang%5D/page-48e8c407de381893.js: 200
info(browser): fetch https://sexyvoice.ai/_next/static/chunks/webpack-ac61204fcf8608a4.js: 200
info(browser): eval script /_next/static/chunks/webpack-ac61204fcf8608a4.js: ReferenceError: AbortController is not defined
info(server): accepting new conn...
node index.js
'use strict'
import puppeteer from 'puppeteer-core';
// use browserWSEndpoint to pass the Lightpanda's CDP server address.
const browser = await puppeteer.connect({
browserWSEndpoint: "ws://127.0.0.1:9222",
});
// The rest of your script remains the same.
const context = await browser.createBrowserContext();
const page = await context.newPage();
const url = process.argv[2];
if (!url || !url.startsWith('http')) {
console.error(`url arg parameter is missing or invalid.\n node index.js http://google.com`)
process.exit(1)
}
console.log(`Navigating to ${url}`)
// Dump all the links from the page.
await page.goto(url);
const links = await page.evaluate(() => {
return Array.from(document.querySelectorAll('a')).map(row => {
return row.getAttribute('href');
});
});
console.log(links);
await page.close();
await context.close();
await browser.disconnect();
though the links work
node index.js https://sexyvoice.ai
Navigating to https://sexyvoice.ai
[
'/en',
'/en/login',
'/en/signup',
'/en/login',
'/en/signup',
'/en/signup',
'/en/signup',
'/en/signup',
'/en/signup',
'/en/blog/hello-from-sexyvoice',
'/en/signup',
'https://x.com/SexyvoiceAi',
'https://sexyvoice.checkly-dashboards.com/',
'/privacy-policy',
'/terms'
]
The website (mine) uses Next.js 15