Web scraper for grabing data from Linkedin profiles or company pages (personal project)
This package allows to fetch data about individuals or companies on Linkedin.
npm i linkedin-client
You need your Linkedin cookie called "li_at". This way, requests will be sent on your behalf.
You can follow these instructions to retrieve your Linkedin session cookie.
const LinkedinClient = require('linkedin-client');
(async () => {
const client = new LinkedinClient('YOUR_LINKEDIN_COOKIE');
const data = await client.fetch('https://www.linkedin.com/in/williamhgates/');
console.log(data);
})();
If you want to retrieve people details :
node src/cli.js https://www.linkedin.com/in/williamhgates/
Or if you want to retrieve company information :
node src/cli.js https://www.linkedin.com/company/microsoft/
npm test
If you want to run the web interface on you own, you can do as follows :
git clone https://github.com/Cooya/Linkedin-Client.git linkedin-client
cd linkedin-client
npm install
npm run build
echo "module.exports = { cookie: 'YOUR_LINKEDIN_COOKIE' };" > config.js
npm start