This commit is contained in:
AMAICDAX 2025-09-10 14:49:25 +02:00
parent e2abe509d0
commit 5bd28168a5

View file

@ -160,10 +160,6 @@ const scrapeLinkedInProfile = async (user) => {
); );
return { return {
img: UserImg || null,
email: UserEmail || null,
linkedinUrl: profileUrl || null,
name: getText("h1"), name: getText("h1"),
headline: getText("div.text-body-medium.break-words"), headline: getText("div.text-body-medium.break-words"),
location: getText( location: getText(
@ -178,6 +174,11 @@ const scrapeLinkedInProfile = async (user) => {
}; };
}); });
// Ajoute les infos supplémentaires avant de retourner
profileData.img = UserImg || null;
profileData.email = UserEmail || null;
profileData.linkedinUrl = profileUrl || null;
await page.screenshot({ await page.screenshot({
path: "public/error/step5_data_extracted.png", path: "public/error/step5_data_extracted.png",
fullPage: true, fullPage: true,