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

Get all posts by a company

Open songsh opened this issue 2 years ago • 11 comments

search_posts has this function ?

songsh avatar Nov 22 '21 14:11 songsh

Can you pleae elaborate a bit more as to what the issue is.

abinpaul1 avatar Nov 22 '21 15:11 abinpaul1

i need crawler company posts, how can i do this work. i see get_profile_post, but no get_company_posts, or search() function can crawler company posts ?

songsh avatar Nov 23 '21 00:11 songsh

It has not been implemented yet.

abinpaul1 avatar Nov 30 '21 03:11 abinpaul1

Buenos días. Alguno ha encontrado una posible solución para este caso, se los agradezco.

jfmiraucn avatar May 06 '22 11:05 jfmiraucn

Hello - is there any solution for that in the meantime?

Rapid1898-code avatar Jul 28 '22 11:07 Rapid1898-code

The enpoint is https://www.linkedin.com/voyager/api/organization/updatesV2

GET url query params: companyIdOrUniversalName=1063 count=10 moduleKey=ORGANIZATION_MEMBER_FEED_DESKTOP paginationToken=657919586-1659009338133-10cf026e19938c8acee2c7c031bf1695 q=companyRelevanceFeed start=3

abinpaul1 avatar Jul 28 '22 12:07 abinpaul1

ok thanks - so when i understand this correct this is still currently not available in the linkedin-api module. And you mean i should use the "normal" API-endpoint form linkedin. How do you get this informations (Token? companyIdOrUniversalName? etc.)

Also i get an error when putting this eg. in Insomnia for testing the request: CSRF check failed.

Rapid1898-code avatar Jul 28 '22 12:07 Rapid1898-code

Company id is the number part of company URN. Have a look at https://github.com/tomquirk/linkedin-api/blob/14cf87950767705656f0b273a9b99fa9aa9cdd0c/linkedin_api/linkedin.py#L867

Token, I think first time you don't need it. You'll get it in response and then use that for next request. That's mostly how it's used in other endpoints.

You can't use the url directly, as you noted csrf check fails. Maybe add a new function to this library and use that, similar to the one I linked above. So all the authentication, cookie, csrf stuff will be taken care for you.

abinpaul1 avatar Jul 28 '22 12:07 abinpaul1

organization/updatesV2 endpoint returns 500. Is that deprecated?

zafercavdar avatar Aug 15 '22 09:08 zafercavdar

organization/updatesV2端点返回 500。是否已弃用?

params = { 'companyUniversalName': '40653509', 'count': '100', 'moduleKey': 'ORGANIZATION_MEMBER_FEED_DESKTOP', 'numComments': '0', 'numLikes': '0', 'q': 'companyFeedByUniversalName', 'start': '0', } api = Linkedin( username=username, password=password, proxies={ # "socks5": "127.0.0.1:1080", "http": "http://127.0.0.1:1087", "https": "https://127.0.0.1:1087" } ) company_infos = api._fetch("/organization/updatesV2", params=params).json() json.dump(company_infos, open("updatesV2.json", "w"), ensure_ascii=False, indent=2)

iicey avatar Sep 06 '22 06:09 iicey

API:/organization/updatesV2 API:/feed/updates It seems that I can't get the timestamp

iicey avatar Sep 06 '22 06:09 iicey