4. Find profiles - Ranork/Auto-Linkedin GitHub Wiki

Find profiles by search

First of all we need to be established a successful login. Then we are able to search profiles with all linkedin parameters.

  const client = new LinkedIn()
  await client.login('[email protected]', 'your password')

  let people = await client.searchPeople({
    keywords: 'Javscript Developer',
    network: ['S']
  }, 250)

searchPeople method

In this method we have 2 main parameters.

async searchPeople(parameters, limit = 100)
  1. parameters: Search Parameters Its basicly a json object with 3 available keys.
  • keywords: The keywords to search for
  • network: The network distance (F for 1, S for 2, B for 3+)
  • geoUrn: Locations to search, you can look from search url in linkedin
  1. limit: Search limit How many people you want to find. It cannot be undefined, we need some limit. Default is 100

Result of the search

Search people method gives us an array of LinkedinProfile objects. We can use all of the profile class methods like visitProfile or connectionRequest.