Python Displays LinkedIn user jobs

Source: Internet
Author: User

CODE:

#!/usr/bin/python #-*-Coding:utf-8-*-' Created on 2014-8-18@author:guaguastd@name:job_position_display.py ' ' # Import loginfrom Login Import linkedin_login# import jsonimport json# access to LinkedIn Apilinkedin_api = Linkedin_login ( ) # Load connections data from disk Fileconnections_data = R ' E:\eclipse\LinkedIn\dfile\linkedin_connections.json ' Connections = json.loads (open (Connections_data). read ()) # Display your own positions...print ' \rmy positions with all info rmation:\r ' my_positions = linkedin_api.get_profile (selectors=[' positions ')) print json.dumps (my_positions, indent=1 # Display your own positions...print ' \rmy positions with only company information:\r ' my_positions = Linkedin_api.get_pro File (selectors=[' positions: (company: (Name,industry,id)) ') Print json.dumps (My_positions, indent=1) # Display                      Positions for someone in your network...connection_ids = [c[' id '] for C in connections[' values '] If C.has_key (' location ')]for connection_id in conNection_ids:print ' \rpositions whose ID is%s:\r '% connection_id connection_positions = Linkedin_api.get_profile (M ember_id=connection_id, selectors=[' positions ']) print json.dumps (connection_positions, Indent=1)

RESULT:

My positions with all information:{"positions": {"_total": 1, "values": [{"StartDate": {"Year": 2009,    "Month": "Company": {"id": 1448618, "name": "Pica8 Inc."  }, "id": 509989134, "iscurrent": True, "title": "Data Mining, Analysis, Automation"}]}}my positions with  information:{"positions": {"_total": 1, "values": [{"Company": {"id": 1448618, "name":    "Pica8 Inc"  }}]}}positions whose ID is pi4cxek7gh:{"positions": {"_total": 1, "values": [{"StartDate": {"Year": "Month": 7}, "title": "Senior Consultant", "Company": {"id": 2868072, "name": "Softtalen T Consulting \u4e92\u8054\u7f51\u7cbe\u82f1\u8f6f\u4ef6\u5f00\u53d1\u4eba\u624d\u62db\u8058\u4e13\u5bb6 "}," Summa     Ry ":" Softtalent consulting\u4e13\u6ce8\u5728\u8f6f\u4ef6\u4eba\u624d\u7684\u641c\u5bfb\u3002 "," isCurrent ": true, "id": 332578726}]}}positions whose IDis xd-bk8g6tv:{"positions": {"_total": 1, "values": [{"StartDate": {"Year": "Month": 9},    "title": "CEO & Founder", "Company": {"id": 1448618, "name": "Pica8 Inc." }, "Summary": "Execution." Create an open network solution. Enable Innovation in the Datacenter Network. "," iscurrent ": true," id ": 262359413}]}}positions whose ID is I   av6qyrtlk:{"positions": {"_total": 0}}positions whose ID is vyzo1wxgph:{"positions": {"_total": 2, "values": [     {"StartDate": {"Year": "Month": Ten}, "title": "Senior software Developer", "Company": { "id": 2494, "name": "Bloomberg LP"}, "Summary": "Developing C + + high availability Bloomberg Terminal Servic Es responsible for delivering millions of real time financial data alerts per day. "," iscurrent ": true," id ": 4755     36757}, {"StartDate": {"Year": "Month": Ten}, "title": "Sole Trader",' Company ': {' name ': ' Dimitrios Kouzis-loukas '}, ' summary ': ' Developed software solutions in C + + and Java fo     R market leading businesses in the fields of finance, hardware design, particle physics and GIS. "," iscurrent ": true, "id": 122386746}]}}positions whose ID is n_jqbpgmml:{"positions": {"_total": 1, "values": [{"Startda TE ": {" Year ": $," month ": 2}," title ":" Software Manager "," Company ": {" id ": 166878," n Ame ":" WatchGuard Technologies "}," Summary ":" Networking Development for XTM "," iscurrent ": true," id ": 37 7469950}]}}positions whose ID is wtro4h6_ck:{"positions": {"_total": 1, "values": [{"StartDate": {" Year ": Page," Month ": 4}," title ":" Senior software Engineer "," Company ": {" id ": 1035," name ": "Microsoft"}, "Summary": "Recommender System development.", "iscurrent": true, "id": 536101418}]}}po Sitions whose ID is 5lVrrmvuel:{"positions": {"_total": 1, "values": [{"Company": {"name": "\u6210\u90fd\u540e\u9662\u79d1\u6280\ U6709\u9650\u516c\u53f8 "}," id ": 529513768," iscurrent ": True," title ":" \u521b\u529e\u4eba "}]}}posi     tions whose ID is llopt6r_si:{"positions": {"_total": 1, "values": [{' StartDate ': {"Year": 2011}, "title": "Online Marketing Manager", "Company": {"name": "Hebei meishen Chemical Group Co.,ltd"}, "Summa Ry ":" mainly focus on magnesium oxide in home and abroad, as a network marketing manager, using professional SEO,    Bidding extension services, help the company achieved good sales performance. "," iscurrent ": true," id ": 533005372  }]}}positions whose ID is ppzgxcdzfh:{' positions ': {"_total": 0}}positions whose ID is ufsj9caqq_:{"positions":     {"_total": 1, "values": [{"StartDate": {"Year": $, "month": Ten}, "title": "Director", "Company": {"name": "CET"}, "Summary": "dms\u3001ami\u3001han\u3001cis\u3001iec-61968/61970", "iscurrent": true, "id": 16663 9434}]}}positions whose ID is 3mghbgssi_:{' positions ': {"_total": 0}}positions whose ID is cqzpi8afdi:{"positio NS ": {" _total ": 1," values ": [{" Company ": {" id ": 3612573," name ":" \uff01\uff01 "}," id ": 5136 45688, "iscurrent": True, "title": "S"}]}}positions whose ID is tmfal8gr6e:{"positions": {"_total": 0}}


Python Displays LinkedIn user jobs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.