Here you can find secure scraping using Puppeteer for different Linkedin actions
- Login
- Scrape profiles: Sales Nav / Normal
- Connection Request
- Follow message
- Endorse Profile
- Visit Profile
- Like posts
- Random Engagement
npm install linvo-scraper puppeteer --save
import * as LinvoScraper from 'linvo-scraper';
import * as puppeteer from 'puppeteer';
(async () => {
const browser = await puppeteer.launch({
headless: false
});
const page = (await browser.newPage());
const cdp = await page.target().createCDPSession();
// that's the res Linvo is working in production
await page.setViewport({
width: 1440,
height: 900,
});
// add ghost-cursor for maximum safety
await LinvoScraper.tools.loadCursor(page, true);
// Login with Linkedin
const {token} = await LinvoScraper.services.login.process(page, cdp, {
user: '[email protected]',
password: 'superStrongPass!!%'
})
// set cookies
await page.setCookie({
name: "li_at",
value: token,
httpOnly: true,
secure: true,
sameSite: "None",
priority: "Medium",
path: "/",
domain: ".www.linkedin.com",
});
await LinvoScraper.services.connect.process(page, cdp, {
message: 'Hi Nevo! Let\'s connect!',
url: 'https://www.linkedin.com/in/nevo-david/'
})
})();
This project was made by Linvo - The Safest Linkedin Automation Tool, and being maintained by Nevo David 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.
We accept contribution with great love! Show your interest! Contribute!