简体   繁体   English

如何使用Python / Curl访问LinkedIn并查看朋友的完整档案?

[英]How to use Python/Curl to access LinkedIn and view a friend's full profile?

A Linkedin friend's full profile is not viewable without login to our Linkedin account. 如果不登录我们的Linkedin帐户,就无法查看Linkedin好友的完整个人资料。 Is it possible to use cookie or any other alternative way without a browser to do that? 是否可以在没有浏览器的情况下使用Cookie或其他任何方式来做到这一点?

Any tips are welcome! 欢迎任何提示!

You may want to check out python-linkedin package link 您可能想查看python-linkedin软件包链接

LinkedIn REST API uses Oauth 2.0 protocol for authentication. LinkedIn REST API使用Oauth 2.0协议进行身份验证。 In order to use the LinkedIn API, you have an application key and application secret. 为了使用LinkedIn API,您需要一个应用程序密钥和应用程序密钥。 You can get more detail from here . 您可以从这里获得更多细节。

Thanks @Anzel, but related-profile-views API allows to read past profile view, but not trigger a new view (and therefore notify the user that I visited their profile programmatically). 感谢@Anzel,但是related-profile-views API允许读取过去的个人资料视图,但不触发新视图(因此会通知用户我已通过编程方式访问了他们的个人资料)。 Unless I pop up a new window and load their profile, but then I'll need a browser to do it. 除非我弹出一个新窗口并加载他们的个人资料,否则我将需要一个浏览器来执行此操作。 Ideally I wanted to achieve it via backend, cURL and cookies, but it it's not as simple as it sounds. 理想情况下,我想通过后端,cURL和cookie来实现它,但是它并不像听起来那样简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM