linkout-scraper
v1.1.7
Published
<p align="center"> <a href=""> <img alt="logo" src="https://raw.githubusercontent.com/linkoutapp/brand/main/scraper-transparent.svg" height="128" width="128" /> </a> </p>
Downloads
6
Readme
Here you can find secure scraping using Puppeteer for different LinkedIn actions
- [x] Login
- [x] Connection Request
- [x] Follow message
- [x] Visit Profile
- [x] Like posts
- [x] Endorse Profile
Install
npm install linkout-scraper puppeteer --save
Setup
- Get LI_AT - this token will be used to authenticate to user's LinkedIn profile.
Usage
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/",
});
})();
Who made this project
This project was made by Linkout - LinkedIn Outreach on Autopilot, and being maintained by Sai Adarsh S. Any contribution is welcomed!
🤝 Contributing
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 :)
📝 License
This project is MIT License licensed.