Linkedin-User-Profile-Scraper is a nodejs package to scrape profile data of linkedin user using browser automation. It currently runs only on windows.
Installation
npm install linkedin-user-profile-scraper
Example
In this example we first import package, then we login with cookies and then scrape profile.
var linkedin=require("linkedin-user-profile-scraper");
function get_data(response){
var data=response["body"]
console.log("data",data)
}
function fetch(){
linkedin.get_profile('profile link',get_data)
}
linkedin.login_cookie(cookie_list,fetch)
DataKund
datakund is needed for browser automation. As soon as this package is imported in code, automated browser will open up.
Import
var linkedin=require("linkedin-user-profile-scraper");
Login with credentials
linkedin.login(username,password)
Login with cookies
linkedin.login_cookie(list_of_cookies)
Get User Profile
linkedin.get_profile('profile link')
Cookies
To login with cookies Edit this Cookie Extension can be added to browser