如何从restapi响应获取下一页

2024-04-18 19:36:06 发布

您现在位置:Python中文网/ 问答频道 /正文

编辑-这里是响应中的第一个对象/记录。我一共收到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库对linkedinrestapi进行一个工作搜索api调用。在

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

我可以很好地访问第一页的输出。但是当我增加起始点到下一页时,我仍然得到相同的响应。我错过了什么?在

下面是我的代码片段:

^{pr2}$

我也在linkedin开发者论坛上发布了这个问题-http://developer.linkedin.com/forum/new-python-client-oauth-20 但没有得到回应。我对python还不熟悉,这让我更加难以理解。 感谢你的帮助。在


Tags: andtonamecomhadoopid记录code