用途:从 G2、Capterra、Trustpilot 抓取产品评论,适合监控竞品评论、收集用户反馈等场景。
主要能力:单一脚本按平台分发到对应的 Apify actor;支持关键词过滤(逗号分隔,OR 逻辑)、按最近 N 天过滤、限制抓取数量;输出统一 schema(platform、title、text、rating、author、date、pros、cons、url),可选 json 或 summary 格式。
使用方式:需设置 APIFY_API_TOKEN 环境变量(或使用 --token),安装依赖 pip install requests。示例:python3 skills/review-scraper/scripts/scrape_reviews.py --platform trustpilot --url "https://www.trustpilot.com/review/example.com" --max-reviews 10 --output summary。G2 可加 --keywords "pricing,support"。
CLI 参数:--platform(必填,g2/capterra/trustpilot)、--url(必填)、--max-reviews(默认 50)、--keywords、--days、--output(json/summary)、--token、--timeout(默认 300 秒)。
平台与成本:G2 使用 zen-studio/g2-reviews-scraper,有免费额度;Capterra 使用 imadjourney/capterra-reviews-scraper,按结果付费;Trustpilot 使用 agents/trustpilot-reviews,约 $0.20/1k 条评论。
限制:依赖 Apify 服务与有效 token;pros/cons 仅 G2/Capterra 提供;具体抓取成功率、速率限制等资料暂未提供。