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

Get engagers (likers/commenters) of a post

Open arthunterme opened this issue 5 years ago • 2 comments

I've been going through the code, and I don't think so, but just in case.

The idea would be to have two functions, one function to extract the shares of a particular user: https://www.linkedin.com/in/tom-quirk/detail/recent-activity/shares/

And output the LinkedIn share posts: https://www.linkedin.com/posts/tom-quirk_how-we-used-ai-to-translate-sign-language-activity-6449782512817446912-9X3U/

And another function that allows extracting the likers of the shares and outputs the id of the likers

Could this be the endpoint of the likers?

https://www.linkedin.com/voyager/api/feed/reactions?count=10&q=reactionType&start=10&threadUrn=urn%3Ali%3Aactivity%3A6590338540985470976

arthunterme avatar Oct 01 '19 09:10 arthunterme

I got the likers:

def get_likers(self, thread_id=None):      
        res = self._fetch(f"/feed/reactions?count=10&q=reactionType&start=10&threadUrn={thread_id}")
        return res.json()

The problem is that LinkedIn load only ten results at once, so I have failed to achieve a way to get all the likers.

arthunterme avatar Oct 17 '19 13:10 arthunterme

You have count=10 as the query, is that intentional? Maybe that's why you're retrieving 10 reactions.

adnaanbheda avatar Aug 04 '20 15:08 adnaanbheda