Returns a Linkedin profile.
Arguments One of:
public_id <str>
- public identifier i.e. tom-quirk-1928345urn_id <str>
- id provided by the Linkedin URN
Return
<dict>
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
profile = linkedin.get_profile('tom-quirk')
Returns a Linkedin profile's first degree (direct) connections
Arguments
urn_id <str>
- id provided by the Linkedin URN
Return
<list>
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
connections = linkedin.get_profile_connections('AC000102305')
Returns a Linkedin profile's contact information.
Arguments One of:
public_id <str>
- public identifier i.e. tom-quirk-1928345urn_id <str>
- id provided by the Linkedin URN
Return
<dict>
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
profile_info = linkedin.get_profile_contact_info('tom-quirk')
Returns a school's Linkedin profile.
Arguments
public_id <str>
- public identifier i.e. university-of-queensland
Return
<dict>
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
school = linkedin.get_school('university-of-queensland')
Returns a company's Linkedin profile.
Arguments
public_id <str>
- public identifier i.e. linkedin
Return
<dict>
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
company = linkedin.get_company('linkedin')
Perform a Linkedin search and return the results.
Arguments
params <dict>
- search parameters (see implementation of search_people for a reference)- `max_results - the max number of results to return
Return
<list>
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
results = linkedin.search({'keywords': 'software'}, 200)
Return a list of metadata of the user's conversations.
Return
<list>
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
conversations = linkedin.get_conversations()
Return a conversation
Arguments
conversation_urn_id <str>
- ID of the conversation
Return
<dict>
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
conversation = linkedin.get_conversation('6446595445958545408')
Return the conversation details (metadata) for a given profile_urn_id.
Use this endpoint to get the conversation id
to send messages (see example).
Arguments
profile_urn_id <str>
- the urn id of the profile
Return
<dict>
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
profile = linkedin.get_profile('bill-g')
profile_urn_id = profile['profile_id']
conversation_details = linkedin.get_conversation_details(profile_urn_id)
# example: getting the conversation_id
conversation_id = conversation_details['id']
Sends a message to the given [conversation_urn_id]
Arguments
conversation_urn_id <str>
- the urn id of the conversationmessage_body <str>
- the message to send
Return
<boolean>
- True if error
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
profile = linkedin.get_profile('bill-g')
profile_urn_id = profile['profile_id']
conversation = linkedin.get_conversation_details(profile_urn_id)
conversation_id = conversation['id']
err = linkedin.send_message(conversation_id, "No I will not be your technical cofounder")
if err:
# handle error
return
Mark a given conversation as seen.
Arguments
conversation_urn_id <str>
- the urn id of the conversation
Return
<boolean>
- True if error
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
profile = linkedin.get_profile('bill-g')
profile_urn_id = profile['profile_id']
conversation = linkedin.get_conversation_details(profile_urn_id)
conversation_id = conversation['id']
err = linkedin.mark_conversation_as_seen(conversation_id)
if err:
# handle error
return
Get view statistics for the current profile. Includes views over time (chart data)
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
views = linkedin.get_current_profile_views()
linkedin.search_people(keywords=None, connection_of=None, network_depth=None, regions=None, industries=None)
Perform a Linkedin search and return the results.
Arguments
keywords <str>
- keywords, comma seperatedconnection_of <str>
- urn id of a profile. Only people connected to this profile are returnednetwork_depth <str>
- the network depth to search within. One of {F
,S
, orO
} (first, second and third+ respectively)regions <list>
- list of Linkedin region idsindustries <list>
- list of Linkedin industry ids
Return
<list>
Example
linkedin = Linkedin(credentials['username'], credentials['password'])
results = linkedin.search_people(
keywords='software,lol',
connection_of='AC000120303',
network_depth='F',
regions=[4909],
industries=[29, 1]
)