-
Notifications
You must be signed in to change notification settings - Fork 171
Basic Tutorial
Wagner Leonardi edited this page Oct 20, 2019
·
6 revisions
- Node.js >= 7.6.0: You can download Node.js here.
- via npm:
npm i scrapedin
- Require scrapedin in your code:
const scrapedin = require('scrapedin')- Create an
optionsobject withscrapedinparameters:
const options = {
email: 'your.linkedin@email.com',
password: 'your.linkedin.password'
}See all options here, you can also login via cookies.
- Call
scrapedinfunction, and use the returnedprofileScraperfunction to scrap a LinkedIn profile:
const profileScraper = await scrapedin(options)
const profile = await profileScraper('https://www.linkedin.com/in/some-profile/')Same code above using Promise instead async/await:
scrapedin(options)
.then((profileScraper) => profileScraper('https://www.linkedin.com/in/some-profile/'))
.then((profile) => console.log(profile))