Skip to content

danieljoppi/node-linkedin-scraper2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple linkedin profile scraper for nodejs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%