linkedin-api icon indicating copy to clipboard operation
linkedin-api copied to clipboard

Can not get all my LinkedIn connections but only 1/3rd of them.

Open ReddyKatta89 opened this issue 3 years ago • 2 comments

Hi,

I am trying to get connections from my own linkedin Profile. I have around 3,500 but was able to get only 500 connections after querying this. Can someone please help me with this?

I wanted to read all what I have in there in my profile!

Thanks in Advance !

ReddyKatta89 avatar May 27 '21 16:05 ReddyKatta89

Hi @ReddyKatta89, could you please write the exact call you use (function with parameters) and the value of version in your linkedin_api/init.py file?

ssichynskyi avatar Jun 21 '21 08:06 ssichynskyi

profile_connections = api.get_profile_connections(
    profile["profile_id"]
)
# GET profile connections (better with public id)
# depths: 'F', 'S', 'O'
# F - first degree, S - second degree, O - third degree
NETWORK_DEPTHS = ["F", "S", "O"]
profile_connections_all_depths = api.search_people(
    user, network_depths=NETWORK_DEPTHS
)
for profile_connection in profile_connections_all_depths:
    if profile_connection not in profile_connections:
        profile_connections.append(profile_connection)
profile["connections"] = profile_connections

Hope the code example above helps

alvaroserrrano avatar Oct 30 '21 19:10 alvaroserrrano