Here you can find secure scraping using Puppeteer for different LinkedIn actions
- Login
- Connection Request
- Follow message
- Visit Profile
- Like posts
- Endorse Profile
npm install linkout-scraper puppeteer --save
- Get LI_AT - this token will be used to authenticate to user's LinkedIn profile.
const Linkout = require("linkout-scraper");
const puppeteer = require("puppeteer");
(async () => {
const browser = await puppeteer.launch({
headless: false,
});
const page = await browser.newPage();
const cdp = await page.target().createCDPSession();
await page.setViewport({
width: 1440,
height: 900,
});
// add ghost-cursor for maximum safety
await Linkout.tools.loadCursor(page, true);
// Login with LinkedIn
await Linkout.services.login(page, cdp, {
cookie: LI_AT,
});
// Connect on LinkedIn
await Linkout.services.connect(page, cdp, {
message: "Hi {{firstName}}, let's connect!",
url: "https://www.linkedin.com/in/sai-adarsh/",
});
// Send a message on LinkedIn
await Linkout.services.message(page, cdp, {
message: "Got it, {{firstName}}!",
url: "https://www.linkedin.com/in/sai-adarsh/",
});
// Visit a LinkedIn profile
await Linkout.services.visit(page, cdp, {
url: "https://www.linkedin.com/in/sai-adarsh/",
});
})();
This project was made by Linkout - LinkedIn Outreach on Autopilot, and being maintained by Sai Adarsh S. Any contribution is welcomed!
Please check our Contribution guide to get started!
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
- Fork the repository, Clone it on your device. That's it ๐
- Finally make a pull request :)
This project is MIT License licensed.