linkedin-api
linkedin-api copied to clipboard
get_profile_connections
get_profile_connections return empty list but the profile has connections. Can I have an example of something that work ? Thank you
get_profile_connections only returns 1st connections, i.e. those people who directly connects with you. e.g. if person A has a number of connections but there is no shared connections between you and A, you will get an empty list.
Is there any way or workaround that allows to get all the connections of a profile? I am thinking of 2 scenarios here:
- You must be a connection of the profile you are requesting the connections from
- You can get all the connections of a profile even if no relationship exists between the logged in profile and the target profile Is any of the above mentioned scenarios possible? If not, do you have any hints about how it could be implemented?
get_profile_connection calls search_people with network_depth
set to 'F' denoting first degree connections.
Try having a look at the search_people
method. Setting network_depth
to the other possible values like 'S' or 'O' denoting second and third+ degree connections might work.