product-hunt-scraper について
Apify Actor を使って Product Hunt の人気製品を取得するコマンドラインスキルです。日・週・月単位で取得でき、キーワードによる絞り込みや出力形式の選択に対応します。
主な機能
- 01日・週・月単位で製品を取得
- 02製品キーワードで絞り込み
- 03結果数の上限を指定
- 04JSON または要約で出力
- 05upvote 数で並べ替え
活用シーン
- 01当日の Product Hunt 人気製品の確認
- 02マーケティング関連キーワードで製品を検索
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ gooseworks-ai/ goose-skills --skill product-hunt-scraperインストール後、Claude Code で/product-hunt-scraperを入力して読み込まれたか確認します。
同梱ファイルscripts/scrape_producthunt.pyskill.meta.json
詳細
Product Hunt スクレイパー
Apify の maximedupre/product-hunt-scraper アクターを使用して、Product Hunt のトレンド商品をスクレイピングします。
**出力フィールド:**各商品には name、tagline、description、url(Product Hunt の URL)があり、アクターの出力に応じて追加フィールドが含まれます。
クイックスタート
APIFY_API_TOKEN 環境変数(または --token フラグ)が必要です。
# Today's top products
python3 skills/product-hunt-scraper/scripts/scrape_producthunt.py \
--time-period daily --max-products 10 --output summary
# This week's products filtered by keyword
python3 skills/product-hunt-scraper/scripts/scrape_producthunt.py \
--time-period weekly --keywords "AI,marketing" --output summary
# Monthly top products as JSON
python3 skills/product-hunt-scraper/scripts/scrape_producthunt.py \
--time-period monthly --max-products 50
CLI リファレンス
| フラグ | デフォルト | 説明 |
|---|---|---|
--time-period | weekly | daily、weekly、または monthly |
--max-products | 50 | スクレイピングする商品の最大数 |
--keywords | none | 絞り込みに使うキーワード(カンマ区切り、OR 条件) |
--output | json | 出力形式:json または summary |
--token | env var | Apify トークン(APIFY_API_TOKEN 環境変数の使用を推奨) |
--timeout | 300 | Apify の実行を待機する最大秒数 |
注意事項
- キーワードによる絞り込みは、商品名、タグライン、説明を対象にクライアント側で行われます
- 結果はアップボート数の降順で並べ替えられます
コメント
Markdown 対応