product-hunt-scraper

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Product Hunt Scraper

Product Hunt Scraper

Scrape trending products from Product Hunt using the Apify
danpoletaev/product-hunt-scraper
actor.
使用Apify的
danpoletaev/product-hunt-scraper
actor抓取Product Hunt上的热门产品。

Quick Start

快速开始

Requires
APIFY_API_TOKEN
env var (or
--token
flag). Install dependency:
pip install requests
.
bash
undefined
需要配置
APIFY_API_TOKEN
环境变量(或传入
--token
参数)。安装依赖:
pip install requests
bash
undefined

Today's top products

Today's top products

python3 skills/product-hunt-scraper/scripts/scrape_producthunt.py
--time-period daily --max-products 10 --output summary
python3 skills/product-hunt-scraper/scripts/scrape_producthunt.py
--time-period daily --max-products 10 --output summary

This week's products filtered by keyword

This week's products filtered by keyword

python3 skills/product-hunt-scraper/scripts/scrape_producthunt.py
--time-period weekly --keywords "AI,marketing" --output summary
python3 skills/product-hunt-scraper/scripts/scrape_producthunt.py
--time-period weekly --keywords "AI,marketing" --output summary

Monthly top products as JSON

Monthly top products as JSON

python3 skills/product-hunt-scraper/scripts/scrape_producthunt.py
--time-period monthly --max-products 50
undefined
python3 skills/product-hunt-scraper/scripts/scrape_producthunt.py
--time-period monthly --max-products 50
undefined

CLI Reference

CLI参考

FlagDefaultDescription
--time-period
weekly
daily
,
weekly
, or
monthly
--max-products
50Max products to scrape
--keywords
noneKeywords to filter (comma-separated, OR logic)
--output
jsonOutput format:
json
or
summary
--token
env varApify token (prefer
APIFY_API_TOKEN
env var)
--timeout
300Max seconds to wait for the Apify run
参数默认值描述
--time-period
weekly可选值:
daily
weekly
monthly
--max-products
50最多抓取的产品数量
--keywords
none过滤关键词(逗号分隔,逻辑为或)
--output
json输出格式:
json
summary
--token
env varApify令牌(推荐使用
APIFY_API_TOKEN
环境变量配置)
--timeout
300等待Apify运行的最长秒数

Notes

注意事项

  • Keyword filtering is client-side on product name + tagline + description
  • Results are sorted by upvote count (descending)
  • 关键词过滤在客户端执行,匹配范围为产品名称+标语+描述
  • 结果按点赞数降序排序