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

How to get saved posts?

Open apallier opened this issue 2 years ago • 1 comments

Hi, I would like to retrieve my saved posts. The URL is https://www.linkedin.com/my-items/saved-posts

I believed I found the query using the Chrome Devtools but it doesn't work. I get an HTTP 400 error ("Bad request")

Do you think it's possible to retrieve the saved posts?


Here the code I use:

api = Linkedin('<login>', '<password>')
params = {
        "decorationId": "com.linkedin.voyager.dash.deco.search.SearchClusterCollection-169",
        "q": "all",
        "query":  "(flagshipSearchIntent:SEARCH_MY_ITEMS_SAVED_POSTS)",
        "start": 0
    }
api._fetch(f"/search/dash/clusters", params=params)  # get a 400 error here

apallier avatar Nov 13 '22 22:11 apallier

Yes this would be super useful to have

cs-mshah avatar Jun 10 '23 04:06 cs-mshah