mcpField
L
linkedin-commenter-extractor

linkedin-commenter-extractor

github.com/gooseworks-aiマーケティング・グロース1.3k49 回インストール3 日前に更新
リポジトリ

linkedin-commenter-extractor について

LinkedIn の投稿からコメントした人のプロフィールとコメントを抽出するコマンドラインスキルです。Apify を使い、LinkedIn の Cookie は不要です。

主な機能

  1. 01氏名とプロフィール情報の抽出
  2. 02コメント本文と投稿 URL の取得
  3. 03見出しから役職と会社を解析
  4. 04JSON、CSV、要約での出力
  5. 05投稿間の重複除去

活用シーン

  1. 01投稿の議論から見込み客リストを作成
  2. 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. 1 件以上の LinkedIn 投稿 URL を受け取ります
  2. harvestapi~linkedin-post-comments Apify アクターを呼び出します(Cookie は不要です)
  3. コメントしたユーザーの名前、見出し(役職+会社名)、LinkedIn プロフィール URL、コメント本文を抽出します
  4. 可能な場合は、見出しを役職と会社名の個別のフィールドに分割します
  5. オプションで、複数の投稿にまたがって LinkedIn プロフィール URL を基に重複を除外します

CLI リファレンス

フラグデフォルト説明
--post-url必須LinkedIn 投稿 URL(複数の投稿を指定する場合は繰り返し使用できます)
--max-comments100投稿ごとに抽出するコメントの最大数
--outputjson出力形式:json、csv、summary
--dedupfalse複数の投稿にまたがるコメント投稿者の重複を除外します
--tokenenv varApify API トークン(APIFY_API_TOKEN 環境変数を上書きします)
--timeout120Apify の実行を待つ最大秒数

出力スキーマ

{
  "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 やログインは不要です。

コメント