Skip to content

Basic Tutorial

Wagner Leonardi edited this page Oct 20, 2019 · 6 revisions

Requirements

  • Node.js >= 7.6.0: You can download Node.js here.

Instalation

  • via npm: npm i scrapedin

Usage:

  1. Require scrapedin in your code:

    const scrapedin = require('scrapedin')
  2. Create an options object with scrapedin parameters:

    const options = {
      email: 'your.linkedin@email.com',
      password: 'your.linkedin.password'
    }

See all options here, you can also login via cookies.

  1. Call scrapedin function, and use the returned profileScraper 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))
Clone this wiki locally