mcpField
L
linkedin-post-research

linkedin-post-research

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

linkedin-post-research について

linkedin-post-researchは、Apifyを通じてキーワードからLinkedInの投稿を探すスキルです。投稿者やエンゲージメント情報を取得し、並べ替え、重複排除、複数形式での出力に対応します。

主な機能

  1. 01Apify経由のキーワード検索
  2. 02関連度または投稿日での並べ替え
  3. 03投稿者とエンゲージメント情報の取得
  4. 04キーワード間の重複排除
  5. 05JSON、CSV、要約形式での出力

活用シーン

  1. 01特定テーマで反応の多い投稿を探す
  2. 02テーマについて発信する投稿者を見つける
  3. 03リード調査用にLinkedIn投稿を収集する

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/gooseworks-ai/goose-skills --skill linkedin-post-research

インストール後、Claude Code で/linkedin-post-researchを入力して読み込まれたか確認します。

同梱ファイルscripts/search_posts.pyskill.meta.json

詳細

LinkedIn 投稿のリサーチ

Apify を使って、キーワードに一致する LinkedIn の投稿を検索します。エンゲージメント順または日付順に投稿を返し、投稿者情報、全文、リアクション数、直接リンクを含みます。

LinkedIn の Cookie は不要です。ログインも不要です。キーワードを入力するだけで、投稿が見つかります。

自動読み込みのタイミング

次の場合に、このスキルを読み込みます。

  • ユーザーが「LinkedIn の投稿を検索して」「LinkedIn では X についてどんな意見がある?」「LinkedIn で〜に関するコンテンツを探して」と言った場合
  • ユーザーがあるトピックについて、エンゲージメントの高い投稿を見つけたい場合
  • ユーザーが特定のトピックについて投稿している人を特定したい場合(ソートリーダーの発掘)
  • ユーザーがコメント投稿者を抽出する投稿を見つけたい場合(見込み顧客の獲得パイプライン)

前提条件

Apify API トークン

LinkedIn の投稿を検索するには必須です。.env に設定します。

APIFY_API_TOKEN=your_token_here

LinkedIn の Cookie、ログイン、セッショントークンは不要です。必要な設定はこれだけです。


仕組み

  1. 1 つ以上のキーワードを受け取ります
  2. apimaestro/linkedin-posts-search-scraper-no-cookies Apify アクターを呼び出します
  3. 投稿者、テキスト、エンゲージメント指標、日付、URL を含む投稿を返します
  4. activity_id を使ってキーワード間の重複を除去します
  5. エンゲージメント(リアクション合計)の降順、または日付順に並べ替えます

クイックスタート

# Single keyword search
python3 skills/capabilities/linkedin-post-research/scripts/search_posts.py \
  --keyword "AI sourcing" --max-items 20

# Multiple keywords
python3 skills/capabilities/linkedin-post-research/scripts/search_posts.py \
  --keyword "AI sourcing" --keyword "recruiting automation" --max-items 30

# Sort by date (most recent first)
python3 skills/capabilities/linkedin-post-research/scripts/search_posts.py \
  --keyword "AI agents" --sort-by date_posted --max-items 20

# Output as CSV
python3 skills/capabilities/linkedin-post-research/scripts/search_posts.py \
  --keyword "AI agents" --output csv --output-file results.csv

# Summary table
python3 skills/capabilities/linkedin-post-research/scripts/search_posts.py \
  --keyword "AI agents" --output summary

CLI リファレンス

フラグデフォルト説明
--keyword, -k必須検索するキーワード(複数のキーワードを指定する場合は、繰り返し使用できます)
--max-items50キーワードごとに返す投稿の最大数
--sort-byrelevance並べ替え順:relevance または date_posted
--output, -ojson出力形式:json、csv、summary
--output-filestdout出力をファイルに書き込みます
--tokenenv varApify API トークン(APIFY_API_TOKEN 環境変数より優先されます)
--timeout120Apify の実行を待つ最大秒数

Apify アクターの詳細

アクター: apimaestro/linkedin-posts-search-scraper-no-cookies

API 呼び出し:

curl -X POST "https://api.apify.com/v2/acts/apimaestro~linkedin-posts-search-scraper-no-cookies/runs?token=$APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "keyword": "AI agents",
    "maxItems": 50,
    "sortBy": "date_posted"
  }'

結果のポーリング:

# Check run status
curl "https://api.apify.com/v2/acts/apimaestro~linkedin-posts-search-scraper-no-cookies/runs/{RUN_ID}?token=$APIFY_API_TOKEN"

# When status is SUCCEEDED, fetch results
curl "https://api.apify.com/v2/datasets/{DATASET_ID}/items?token=$APIFY_API_TOKEN"

出力スキーマ

{
  "author": "Jane Smith",
  "author_headline": "VP of Sales at Acme Corp",
  "author_profile_url": "https://www.linkedin.com/in/janesmith",
  "keyword": "AI sourcing",
  "reactions": 142,
  "comments": 28,
  "shares": 12,
  "reactions_by_type": {"LIKE": 100, "EMPATHY": 30, "PRAISE": 12},
  "date": "2026-04-01",
  "post_preview": "First 200 chars of the post text...",
  "full_text": "Complete post text...",
  "url": "https://www.linkedin.com/posts/...",
  "activity_id": "7447040447966826496",
  "hashtags": ["#AI", "#sales"],
  "is_repost": false,
  "content_type": "text"
}

出力列(CSV)

列説明
author投稿者名
author_headline投稿者の LinkedIn の見出し
author_profile_url投稿者の LinkedIn プロフィール URL
keyword一致した検索キーワード
reactionsリアクションの合計数
commentsコメント数
sharesシェア数
date投稿の日付(YYYY-MM-DD)
post_preview先頭約 200 文字
urlLinkedIn 投稿への直接リンク
activity_id投稿の一意な識別子
hashtagsカンマ区切りのハッシュタグ

費用

Apify はコンピューティングの使用量に応じて課金します。約 50 件の投稿で、アクターの料金プランに応じて約 $0.01〜0.05 かかります。スクリプトは実行ごとに費用情報を出力します。

エラー処理

エラー対処方法
APIFY_API_TOKEN が設定されていないユーザーに .env への追加を依頼します
Apify の実行が失敗またはタイムアウトする1 回再試行します。それでも失敗する場合は、より広範なキーワードを試します。
結果が 0 件キーワードが具体的すぎる可能性があります。より広範な語句を試します。

コメント