Skip to content

Latest commit

 

History

History
152 lines (100 loc) · 3.62 KB

File metadata and controls

152 lines (100 loc) · 3.62 KB

Documentation


linkedin.get_profile(public_id=None, urn_id=None)

Returns a Linkedin profile.

Arguments One of:

  • public_id - public identifier i.e. tom-quirk-1928345
  • urn_id - id provided by the Linkedin URN

Example

linkedin = Linkedin(credentials['username'], credentials['password'])

linkedin.get_profile('tom-quirk')

linkedin.get_profile(urn_id)

Returns a Linkedin profile's first degree (direct) connections

Arguments

  • urn_id - id provided by the Linkedin URN

Example

linkedin = Linkedin(credentials['username'], credentials['password'])

linkedin.get_profile_connections('AC000102305')

linkedin.get_profile_contact_info(urn_id)

Returns a Linkedin profile's contact information.

Arguments One of:

  • public_id - public identifier i.e. tom-quirk-1928345
  • urn_id - id provided by the Linkedin URN

Example

linkedin = Linkedin(credentials['username'], credentials['password'])

linkedin.get_profile_contact_info('tom-quirk')

linkedin.get_school(public_id)

Returns a school's Linkedin profile.

Arguments

  • public_id - public identifier i.e. university-of-queensland

Example

linkedin = Linkedin(credentials['username'], credentials['password'])

linkedin.get_school('university-of-queensland')

linkedin.get_company(public_id)

Returns a company's Linkedin profile.

Arguments

  • public_id - public identifier i.e. linkedin

Example

linkedin = Linkedin(credentials['username'], credentials['password'])

linkedin.get_company('linkedin')

linkedin.search(self, params, max_results=None, results=[])

Perform a Linkedin search and return the results.

Arguments

  • params - search parameters (see implementation of search_people for a reference)
  • max_results - the max number of results to return

Example

linkedin = Linkedin(credentials['username'], credentials['password'])

linkedin.search({keywords: 'software'}, 200)

linkedin.search_people(self, keywords=None, connection_of=None, network_depth=None, regions=None, industries=None)

Perform a Linkedin search and return the results.

Arguments

  • keywords - keywords, comma seperated
  • connection_of - urn id of a profile. Only people connected to this profile are returned
  • network_depth - the network depth to search within. One of {F, S, or O} (first, second and third+ respectively)
  • regions - list of Linkedin region ids
  • industries - list of Linkedin industry ids

Example

linkedin = Linkedin(credentials['username'], credentials['password'])

linkedin.search_people(
  keywords='software,lol', 
  connection_of='AC000120303',
  network_depth='F',
  regions=[4909],
  industries=[29, 1]
)