如何使用linkedin中的用户名在search_profile中获取用户公开个人资料信息?

时间:2015-12-11 11:53:35

标签: python-2.7

来自linkedin

ECHO OFF
set source=C:\Users\john\Desktop\abc\
set destination=C:\Users\john\Desktop\xyz\

for /F "tokens=2-4 delims=/ " %%i in ('date /t') do set yyyymmdd1=%%j"."%%i"."%%k

if exist %destination% goto GO
:GO
mkdir %destination%%yyyymmdd1%
xcopy %source%* %destination% /s/d/y/c/v/r
echo. 
echo Finished copying %source% to %destination%
echo.
echo Created %destination%%yyyymmdd1%
pause

我想获取用户Ramya的所有公开个人资料信息 我试过这样我得到的错误如下所示

import linkedin

CONSUMER_KEY = 'XXX'

CONSUMER_SECRET = 'XXX'

USER_TOKEN = 'XXX'

USER_SECRET = 'XXX'

RETURN_URL ="http://localhost:8000"


auth = linkedin.LinkedInDeveloperAuthentication(CONSUMER_KEY,CONSUMER_SECRET,USER_TOKEN, USER_SECRET, RETURN_URL,permissions=linkedin.PERMISSIONS.enums.values())

app = linkedin.LinkedInApplication(auth)

profiles = app.search_profile(selectors=[{'people': ['first-name', 'last-name']}], params={'keywords': 'Ramya'})

我的问题是,

如何获取Ramya个人资料名称的所有公开个人资料信息  以及如何将params传递给search_profile

0 个答案:

没有答案