question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

linkedin: profile not found when using cookies

See original GitHub issue

When I use the scrapper with login/password options it works fine. But when I use my cookie, I get an error of type ‘linkedin: profile not found’

const fs = require('fs');
const scrapedin = require("scrapedin");

// const options = { email: "name@gmail.com", password: "abcdefgh" };
const cookies = fs.readFileSync('./cookie.txt');
const options = {
  cookies: JSON.parse(cookies)
}

console.log(options);

const url = 'https://www.linkedin.com/in/wassimazirar/';
scrapedin(options)
    .then(profileScraper => profileScraper(url, 2000))
    .then(profile => {
        console.log(profile);
    });
(node:13224) UnhandledPromiseRejectionWarning: Error: linkedin: profile not found
    at ..\node_modules\scrapedin\src\profile.js:19:13
    at async module.exports (..\node_modules\scrapedin\src\profile.js:16:3)
(node:13224) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:13224) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jessica-yangcommented, Dec 19, 2019

Thanks @leonardiwagner ! Looks like it’s working now.

1reaction
leonardiwagnercommented, Dec 11, 2019

@wassim-azirar @jessica-yang new version released, please update to v1.0.11.

Possible fixes for this issue:

please update the version and give a feedback about the issue, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does 'Profile Not Found' mean? - LinkedIn
"Profile not available" means either LinkedIn suspended it or the account holder closed the account. Since the person was not your contact ( ......
Read more >
7 Ways to Fix Cannot View Profiles on LinkedIn - Saint - Saintlad
1. Check Other Profiles. 2. Disable Browser Extensions. 3. Turn Off VPN. 4. Try A Different Search Browser. 5. Clear Your Browser's Data....
Read more >
How to access your LinkedIn Cookie and what exactly does a ...
If you're using the LinkedIn Personalisation system within Smartwriter, you'll need access to a LinkedIn cookie from your LinkedIn account.
Read more >
Access Denied: How to Reclaim Your LinkedIn Profile When ...
LinkedIn suggests first trying to sign in with a secondary email address that's associated with your account (as I recommend above). The ...
Read more >
LinkedIn Not Working? Try These 8 Troubleshooting Tips
If signing out and back into your account didn't help, you can try clearing the browser's cache and cookies. This will wipe the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found