Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when creating scrapper object #1

Open
bigdoods opened this issue May 23, 2017 · 2 comments
Open

Issue when creating scrapper object #1

bigdoods opened this issue May 23, 2017 · 2 comments

Comments

@bigdoods
Copy link

Hi,

I am trying to use the module but I am confused by creating the scrapper object. When I try to create my own scrapper object; (see inline comments)

 var scrapper = new ScrapeLinkedin({
     debug : true, 
     token : "AQEDAQspjEgFMbwCAAABXDTCdAMAAAFcNnnoA04AUGtGVZg_a9IjDU1ofVm0lDmmwJPUan9F6DYDKxb1L5ihoiB1R7RA1on_eojo0X1K6Asf1ohZQ8DinUChZ8D86EFDpbtX8cLH9OfxjB_TSvU1YF8f",  // the li_at value that is stored in my browser cookies for www.linkedin.com
     loginCsrf : "5750b618-79f2-46f3-8c8f-996eb20ffaca", // the Csrf value that is returned to me when I ran the server with this key commented out. 
     loginCookies :"v=1&20170523173255934f9c09-a7af-4da5-8f78-b2663f020437AQGJ_n-xxz_vpfG11iW2X3BQZ5Pw_uqh", // This is my bcookie value 
     loginEmail : "<my-email>", // my email login to linkedin
     loginPassword : "<my-password>" // my password login to linkedin
 });

The rest of the code;

scrapper.fetch("jenca-john")
.then(profile => {
    let lol
    lol = profile.toString()
    console.log(util.inspect(profile, true, null))
}) .catch(err => console.log(err));

When I run the server with the above object assigned to scrapper, my server runs and I do not receive an obvious response or err.

Can you offer any advice please?
Thanks in advance,
John

@charlyBerthet
Copy link
Owner

I guess linkedin updated their website and my module is no longer working I am sorry..!

@guyromb
Copy link

guyromb commented Jan 17, 2018

@bigdoods did you find a solution? or alternative working module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants