提取你的LinkedIn个人资料并允许你在鹈鹕的页面中使用这些信息

pelican-linkedin-profile的Python项目详细描述


提取LinkedIn个人资料并允许在鹈鹕页面中使用他的信息

安装

要安装鹈鹕LinkedIn,只需从pypi安装即可:

$ pip install pelican-linkedin-profile

配置

在pelicanconf.py中启用插件

PLUGINS=[# ...'pelican-linkedin-profile',# ...]

添加包含LinkedIn API密钥的必需设置。

LINKEDIN_USER_TOKEN='XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'LINKEDIN_USER_SECRET='XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'LINKEDIN_CONSUMER_KEY='XXXXXXXXXXXXXX'LINKEDIN_CONSUMER_SECRET='XXXXXXXXXXXXXXXX'LINKEDIN_RETURN_URL='http://example.com/'

可用数据

formattedName:The member’s name, formatted based on language.
headline:The member’s headline.
summary:A long-form text area describing the member’s professional profile.
pictureUrl:A URL to the member’s formatted profile picture, if one has been provided.
emailAddress:The LinkedIn member’s primary email address.
primaryTwitterAccount:
The primary Twitter account associated with the member.
publicProfileUrl:
The URL to the member’s public profile on LinkedIn.
phoneNumbers:A list of phone number objects containing those fields : phoneNumber, phoneType (home, work or mobile.)
skills:A list of skill’s name
languages:A list of language’s name
educations:A list of eduction objects containing those fields : startDate, endDate, degree, schoolName, fieldOfStudy
positions:A list of position objects containing those fields : startDate, endDate, title, company, summary, isCurrent. A company object contains those fields : industry, size, type, name

用法

在模板中,您将可以访问LinkedIn_配置文件变量,如下所示。

<div><h2>{{ linkedin_profile.formattedName }}</h2><p>{{ linkedin_profile.headline }}</p></div>

许可证

GPLv2许可证。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java为什么加载个人密钥库需要这么多时间?   当我使用main创建Android应用程序UI时,如何通过java修改它。xml文件?   java Tomcat 6和7:WebappClassLoader:尝试为名称org/apache/openjpa/persistence/osgi/BundleUtils复制类定义   java`parseInt()`和`parseDouble()`throw`NumberFormatExeption`   JavaSpringMongoDB填充引用   在LinuxMint中打开Eclipse时发生java错误;OpenJDK 64位服务器VM警告:忽略选项MaxPermSize=512m;支持在8.0中被删除   使用PKCS7Padding的AES CBC加密在Java和Objective中有不同的结果   java为什么Jackson要用一个以类命名的额外层来包装我的对象?   json在Java中使用parallelStream提取值   JavaSpring存储库自动生成方法:按给定的顶部编号+按字段描述排序选择   java是否有可序列化的标准闭包接口?   .NET与Java在初创公司的web应用程序开发   如何修复java。java中的lang.unsatifiedLinkError   JavaFX+Spring Boot+Hibernate应用程序对多个环境的java支持   自定义视图组中的java更改未呈现