linkedin-api
linkedin-api copied to clipboard
How to get saved posts?
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
Yes this would be super useful to have