modif
This commit is contained in:
parent
f7e1e618a4
commit
e2abe509d0
1 changed files with 5 additions and 5 deletions
|
|
@ -92,8 +92,8 @@ const getUserProfile = async (req, res) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const scrapeLinkedInProfile = async (user) => {
|
const scrapeLinkedInProfile = async (user) => {
|
||||||
const img = user.img;
|
const UserImg = user.img;
|
||||||
const useremail = user.email;
|
const UserEmail = user.email;
|
||||||
const profileUrl = user.linkedinUrl;
|
const profileUrl = user.linkedinUrl;
|
||||||
|
|
||||||
console.log("Scraping LinkedIn profile:", profileUrl);
|
console.log("Scraping LinkedIn profile:", profileUrl);
|
||||||
|
|
@ -160,9 +160,9 @@ const scrapeLinkedInProfile = async (user) => {
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
img: user.img || null,
|
img: UserImg || null,
|
||||||
email: user.email || null,
|
email: UserEmail || null,
|
||||||
linkedinUrl: user.linkedinUrl || 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"),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue