This commit is contained in:
AMAICDAX 2025-09-09 16:17:42 +02:00
parent 1071ef012d
commit cf36a8dd63

View file

@ -93,7 +93,10 @@ const getUserProfile = async (req, res) => {
const scrapeLinkedInProfile = async (profileUrl) => { const scrapeLinkedInProfile = async (profileUrl) => {
console.log("Scraping LinkedIn profile:", profileUrl); console.log("Scraping LinkedIn profile:", profileUrl);
const browser = await puppeteer.launch({ headless: false }); // headless: true si tu veux sans UI const browser = await puppeteer.launch({
headless: false,
args: ["--no-sandbox", "--disable-setuid-sandbox"],
}); // headless: true si tu veux sans UI
const page = await browser.newPage(); const page = await browser.newPage();
console.log("Using email:", email); console.log("Using email:", email);