Skip to content

Seekube/node-linkedin-scraper2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-linkedin-scraper2

A simple LinkedIn profile scraper for nodejs, based on original linkedin-scraper.

Usage

with callback function

// Scrape a linkedin profile for the public contents
const parsingUrl = require('linkedin-scraper2').parsingUrl;
const url = 'https://www.linkedin.com/in/[user]';

parsingUrl(url, (err, profile) => {
    if (err) {
        return console.log(err);
    }

    // Success
    console.log(profile);
});

with promise

// Scrape a linkedin profile for the public contents
const parsingUrl = require('linkedin-scraper2').parsingUrl;
const url = 'https://www.linkedin.com/in/[user]';

parsingUrl(url)
    .then((profile) => {
        console.log(profile);
    })
    .catch((err) => {
        console.log(err);
    });

output

http://pastebin.com/629RHwTa

About

A simple linkedin profile scraper for nodejs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%