modfi
This commit is contained in:
parent
1071ef012d
commit
cf36a8dd63
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue