linkedin-scraper2
v2.0.0
Published
A scraper for LinkedIn, give us a linkedin profile URL and we'll give you a nice data structure
Downloads
7
Readme
node-linkedin-scraper2
A simple LinkedIn profile scraper for nodejs, based on original linkedin-scraper.
Install
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