SuperAPI AI 工具集

linkedin-profile-post-scraper

编程与开发

查看项目

更新于 10-16 01:38

技能介绍

用途:抓取指定 LinkedIn 个人主页的近期帖子,用于监控特定人物(如创始人、高管)在 LinkedIn 上的发帖动态。

主要能力:通过 Apify 的 harvestapi/linkedin-profile-posts actor 抓取帖子;支持一次传入多个主页 URL(逗号分隔);支持关键词过滤(逗号分隔,OR 逻辑);支持按最近 N 天筛选;输出 JSON 或摘要表格。

使用方式:需设置 APIFY_API_TOKEN 环境变量(或使用 --token 参数),并安装依赖 pip install requests。示例:python3 skills/linkedin-profile-post-scraper/scripts/scrape_linkedin_posts.py --profiles "https://www.linkedin.com/in/marcelsantilli" --max-posts 10;多主页加关键词:--profiles "url1,url2" --keywords "AI,growth" --days 30;摘要输出:--output summary。

主要参数:--profiles(必填,逗号分隔的主页 URL)、--max-posts(默认 20)、--keywords(默认无)、--days(默认 30)、--output(json 或 summary,默认 json)、--token(默认取环境变量)、--timeout(默认 300 秒)。

限制:无原生日期过滤,日期在客户端按 postedAt/postedDate 过滤;主页 URL 必须是完整 LinkedIn 链接(如 https://www.linkedin.com/in/username)。费用约每 1,000 条帖子 2 美元,脚本运行前会打印费用估算。