pythonlinkedin-api

problems with current_company argument on search_people method on linkedin_api


from linkedin_api import *

# Authenticate using any Linkedin account credentials
api = Linkedin('**************@g*****.com', '***')

print(api.search_people(current_company = '1009'))

I've tried to use this code to get people working on IBM, but all I get is a empty list.

I tried to replace with

current_company = 'ibm'

and with caps lock also. But didn't get any new result

I can get the results without any arguments, but I need to search people working on a specific company


Solution

  • The search_people function requires (a list of) company URN IDs as input for the current_company argument so 'ibm' is not valid. The input should be a string-based identifier with the format: urn:{namespace}:{entityType}:{id}.