linkedin-api
linkedin-api copied to clipboard
Can not get all my LinkedIn connections but only 1/3rd of them.
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 !
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?
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