-
Notifications
You must be signed in to change notification settings - Fork 174
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
options
object withscrapedin
parameters:const options = { email: 'your.linkedin@email.com', password: 'your.linkedin.password' }
See all options here, you can also login via cookies.
-
Call
scrapedin
function, and use the returnedprofileScraper
function 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))