modif
This commit is contained in:
parent
e2abe509d0
commit
5bd28168a5
1 changed files with 5 additions and 4 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue