linkedin-commenter-extractor について
LinkedIn の投稿からコメントした人のプロフィールとコメントを抽出するコマンドラインスキルです。Apify を使い、LinkedIn の Cookie は不要です。
主な機能
- 01氏名とプロフィール情報の抽出
- 02コメント本文と投稿 URL の取得
- 03見出しから役職と会社を解析
- 04JSON、CSV、要約での出力
- 05投稿間の重複除去
活用シーン
- 01投稿の議論から見込み客リストを作成
- 02複数投稿のコメント参加者を確認
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ gooseworks-ai/ goose-skills --skill linkedin-commenter-extractorインストール後、Claude Code で/linkedin-commenter-extractorを入力して読み込まれたか確認します。
同梱ファイルscripts/extract_commenters.pyskill.meta.json
詳細
LinkedIn コメント抽出ツール
特定の LinkedIn 投稿にコメントしたユーザーの名前、役職、会社名、LinkedIn URL、コメント本文を抽出します。Apify を使用するため、LinkedIn の Cookie は不要です。
クイックスタート
requests と APIFY_API_TOKEN 環境変数が必要です。
# Extract commenters from a single post
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
--post-url "https://www.linkedin.com/posts/someone_topic-activity-123456789"
# Multiple posts
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
--post-url URL1 --post-url URL2
# Limit comments per post
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
--post-url URL --max-comments 50
# Output formats
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output json
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output csv
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py --post-url URL --output summary
# Deduplicate across multiple posts
python3 skills/linkedin-commenter-extractor/scripts/extract_commenters.py \
--post-url URL1 --post-url URL2 --dedup
仕組み
- 1 件以上の LinkedIn 投稿 URL を受け取ります
harvestapi~linkedin-post-commentsApify アクターを呼び出します(Cookie は不要です)- コメントしたユーザーの名前、見出し(役職+会社名)、LinkedIn プロフィール URL、コメント本文を抽出します
- 可能な場合は、見出しを役職と会社名の個別のフィールドに分割します
- オプションで、複数の投稿にまたがって LinkedIn プロフィール URL を基に重複を除外します
CLI リファレンス
| フラグ | デフォルト | 説明 |
|---|---|---|
--post-url | 必須 | LinkedIn 投稿 URL(複数の投稿を指定する場合は繰り返し使用できます) |
--max-comments | 100 | 投稿ごとに抽出するコメントの最大数 |
--output | json | 出力形式:json、csv、summary |
--dedup | false | 複数の投稿にまたがるコメント投稿者の重複を除外します |
--token | env var | Apify API トークン(APIFY_API_TOKEN 環境変数を上書きします) |
--timeout | 120 | Apify の実行を待つ最大秒数 |
出力スキーマ
{
"name": "Jane Smith",
"headline": "VP of Finance at Acme Corp",
"title": "VP of Finance",
"company": "Acme Corp",
"linkedin_url": "https://www.linkedin.com/in/janesmith",
"comment_text": "Great insights on AI in accounting...",
"post_url": "https://www.linkedin.com/posts/...",
"profile_image_url": "https://..."
}
コスト
harvestapi~linkedin-post-comments Apify アクターを使用します。1,000 件のコメントあたり約 2 ドルです。LinkedIn の Cookie やログインは不要です。
コメント
Markdown 対応