2

编辑 - 这是响应中的第一个对象/记录。我总共得到 20 条记录,其中包括: 注意:响应已被解析以删除 unicode 即 u' 并已 ' 替换为 " 以使其成为有效的 json。

{
    "jobs": {
        "_total": 1811,
        "_count": 20,
        "_start": 0,
        "values": [{
            "siteJobUrl": "xxx",
            "company": {
                "id": 21836,
                "name": "CyberCoders"
            },
            "postingDate": {
                "year": 2013,
                "day": 10,
                "month": 6
            },
            "descriptionSnippet": "Software Engineer- Hadoop, HDFS, HBaseWe are a well known consumer product development company and we are looking to add a Hadoop Engineer to our Engineering team.  You will be working with the latest and greatest technologies to design, develop, and implement connectivity products that allow efficient exchange of data between our core database engine and the Hadoop ecosystem.What you need for thi",
            "expirationDate": {
                "year": 2013,
                "day": 10,
                "month": 7
            },
            "position": {
                "industries": {
                    "_total": 1,
                    "values": [{
                        "code": "4",
                        "id": 4,
                        "name": "Computer Software"
                    }]
                },
                "title": "Software Engineer- Hadoop, HDFS, HBase",
                "experienceLevel": {
                    "code": "2",
                    "name": "Entry level"
                },
                "location": {
                    "country": {
                        "code": "us"
                    },
                    "name": "Greater Pittsburgh Area"
                },
                "jobFunctions": {
                    "_total": 1,
                    "values": [{
                        "code": "it",
                        "name": "Information Technology"
                    }]
                },
                "jobType": {
                    "code": "F",
                    "name": "Full-time"
                }
            },
            "customerJobCode": "CCW-ssehadooppaccw",
            "locationDescription": "Pittsburgh, PA",
            "jobPoster": {
                "headline": "Senior Executive Technical Recruiter at CyberCoders (949)885-5121 chelsea.whalen@cybercoders.com",
                "lastName": "W.",
                "id": "y2zfe5j76F",
                "firstName": "Chelsea"
            },
            "id": 6007298
        },

我正在尝试使用下面的 python 库对linkedin REST API 进行求职API 调用。

https://github.com/ozgur/python-linkedin/

我可以很好地访问第一页输出。但是当我增加开始指向下一页时,我仍然得到相同的响应。我在这里想念什么?

这是我的代码片段:

authentication = LinkedInAuthentication(API_KEY, API_SECRET, RETURN_URL,
                                        PERMISSIONS.enums.values())
.......
application = LinkedInApplication(authentication)
........

# This is my request
response = application.search_job(
            selectors=[{'jobs':
                        ['id',
                         'customer-job-code',
                         'posting-date','expiration-date',
                         {'company':['id','name']},
                         {'position':['title',
                                      'location',
                                      'job-functions.',
                                      'industries',
                                      'job-type',
                                      'experience-level']},
                         'skills-and-experience',
                         'description-snippet',
                         'salary',
                         {'job-poster':['id',
                                        'first-name',
                                        'last-name',
                                        'headline']},
                         'referral-bonus',
                         'site-job-url',
                         'location-description']}],
            params={'keywords': 'hadoop','count': 20},
            headers={'start':20})

我也在linkedin开发者论坛上发布了查询 - http://developer.linkedin.com/forum/new-python-client-oauth-20 但没有得到回应。我是 python 新手,这让我更加困难。感谢你的帮助。

4

0 回答 0