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

api.get_profile_connections("username") returning 1000 connections every time

Open mhmzdev opened this issue 2 years ago • 1 comments

Although its mentioned in the doc that api.get_profile_connections() gets you 1st Degree Connection Yet it is returning a list of 1000 connections even if the profile has 5 connections.

Below is the code:

from linkedin_api import Linkedin
api = Linkedin("email", "password")
connection = api.get_profile_connections("mhmzdev")

mhmzdev avatar Aug 13 '21 09:08 mhmzdev

The get_profile_connections takes URI as input and not the public profile name. However there does seem to be a bug when we give the URI of an account with no mutual connections. In this case a list of connections( I believe it is our own connections) is returned

abinpaul1 avatar Sep 14 '21 19:09 abinpaul1