A simple LinkedIn profile scraper for nodejs, based on original linkedin-scraper.
npm install linkedin-scraper2 --save
// 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);
}
});
// 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);
});