Linkedin网的数据采集-profiles_posts

参数:
username:搜索查询关键字。
start: 使用此参数获取下一个结果页面中的帖子:第1页为0,第2页为50,第3页为100,以此类推。
paginationToken: 在获取下一个结果页面时需要它。必须使用上次调用的令牌。
postedAt: 它在从LinkedIn获取帖子后进行过滤,并返回比给定日期更新的帖子。示例值:2024-01-01 00:00
请求示例
import requests

url = "https://api.yasuo.one/v1/linkedin/posts"

querystring = {"username":"adamselipsky"}

headers = {
	"x-rapidapi-key": "Sign Up for Key",
	"x-rapidapi-host": "linkedin-data-api.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
结果返回
{
    "success": true,
    "message": "",
    "data": [{
            "text": "Today marks a significant milestone for the telecom industry.\n\nTelefónica Germany announced it will build a new 5G Cloud Core on Amazon Web Services (AWS), done in collaboration with Nokia. This is the first major telecom operator with an existing network to announce it will run its 5G core in the cloud.\n\nTelefónica Germany can now take advantage of full automation and elasticity at scale—all with full data encryption, and the most flexible, reliable, and secure cloud computing environment.\n\nPlus, they can more easily deploy updates to improve customer experience, helping deliver on their vision of building the network of the future.",
            "totalReactionCount": 2907,
            "likeCount": 2534,
            "appreciationCount": 5,
            "empathyCount": 39,
            "InterestCount": 65,
            "praiseCount": 264,
            "commentsCount": 37,
            "repostsCount": 186,
            "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7194079655832739842/",
            "postedAt": "19h",
            "postedDate": "2024-05-08 21:04:09.487 +0000 UTC",
            "postedDateTimestamp": 1715202249487,
            "urn": "7194079655832739842",
            "author": {
                "firstName": "Adam",
                "lastName": "Selipsky",
                "username": "adamselipsky",
                "url": "https://www.linkedin.com/in/adamselipsky"
            },
            "company": {},
            "article": {
                "title": "Exclusive: Amazon breaks into Europe 5G networks with Telefonica cloud deal",
                "subtitle": "reuters.com • 3 min read",
                "link": "https://www.reuters.com/business/media-telecom/amazon-breaks-into-europe-5g-networks-with-telefonica-cloud-deal-2024-05-08/"
            }
        }, {
            "text": "Our goal has always been to make transformative tech like GenAI accessible and easy to use for developers. Today, we’re announcing a new capability in Amazon Bedrock to do just that. https://lnkd.in/gQpefcfe\n\nWe're introducing Amazon Bedrock Studio (available in preview), a web-based experience designed to accelerate the development of GenAI applications by providing a rapid prototyping environment with Bedrock features, including Knowledge Bases, Agents, and Guardrails. With Amazon Bedrock Studio, developers can:\n\n⚪ Easily interact with a wide range of LLMs and foundation models\n⚪ Collaborate on projects with cross-functional teams\n⚪ Leverage a user-friendly interface with playground mode for iterative development\n⚪ Seamlessly integrate proprietary data sources, systems, and APIs\n⚪ Benefit from centralized access management, policy enforcement, and responsible AI capabilities",
            "totalReactionCount": 2294,
            "likeCount": 2000,
            "appreciationCount": 5,
            "empathyCount": 79,
            "InterestCount": 25,
            "praiseCount": 185,
            "commentsCount": 32,
            "repostsCount": 328,
            "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7193723121181364224/",
            "postedAt": "1d",
            "postedDate": "2024-05-07 21:27:25.002 +0000 UTC",
            "postedDateTimestamp": 1715117245002,
            "reposted": true,
            "urn": "7193723121181364224",
            "author": {
                "firstName": "Swami",
                "lastName": "Sivasubramanian",
                "username": "swaminathansivasubramanian",
                "url": "https://www.linkedin.com/in/swaminathansivasubramanian"
            },
            "image": [{
                    "url": "https://media.licdn.com/dms/image/D5622AQFH8LMzrRd7MA/feedshare-shrink_2048_1536/0/1715104468105?e=1718236800&v=beta&t=fPDJTmoIRsVNLmeILA-8TLGrlCj_8fwkF5ZNGJv7vkE"
                }
            ],
            "company": {},
            "article": {}
        },
		{........}
    ],
    "paginationToken": "dXJuOmxpOmFjdGl2aXR5OjcxNTc4MDc0MTgyNzIzNTAyMDgtMTcwNjU1NDI3NDEyOA=="
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值