/node-linkedin-scraper2

A simple linkedin profile scraper for nodejs

Primary LanguageJavaScriptMIT LicenseMIT

node-linkedin-scraper2 NPM version

Build Status Coveralls Status

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

Install Dependency Status devDependency Status

    npm install linkedin-scraper2 --save

Usage

with callback function

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

linkedinScraper(url, function(err, profile) {
    if (err) {
        console.log(err);
    } else {
        console.log(profile);
    }
});

with promise

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

linkedinScraper(url)
    .then(function(profile) {
        console.log(profile);
    })
    .catch(function(err) {
        console.log(err);
    });

output

http://pastebin.com/629RHwTa