How viggoz/producthunt-daily-hot works
This repository automates a daily Chinese-language Product Hunt top-products digest. The primary workflow fetches the prior day’s products, enriches entries with images, Chinese keywords and translations, renders Markdown, and stores dated results in data/; the README also documents scheduled or manual GitHub Actions runs and commits. A separate repair script fills missing image links in existing files. The graph reflects the README and supplied source excerpts; unsampled workflow details and script internals are not inferred beyond documented behavior.
Main entry points: product_hunt_list_to_md.py Digest generator · generate_markdown.yml GitHub Actions · fix_images.py Image repair processor · data Dated digest files
Components 18
Digest generation
- GitHub Actions
.github/workflows/generate_markdown.yml - Digest generator
scripts/product_hunt_list_to_md.py - Product Hunt API
- Image lookup
scripts/product_hunt_list_to_md.py - Keyword generation
scripts/product_hunt_list_to_md.py - Chinese translation
scripts/product_hunt_list_to_md.py - OpenAI API
- Markdown rendering
scripts/product_hunt_list_to_md.py - GitHub commit
.github/workflows/generate_markdown.yml
Image repair
- Image repair processor
scripts/fix_images.py - Product Hunt API
- Product page metadata
Published archive
- Dated digest files
data
Other components
- Repository maintainer
- Daily/manual trigger
- Repair command
- Online digest site
- Downstream repository
Connections 19
- Repository maintainer → GitHub Actions: configures
README.md - Daily/manual trigger → GitHub Actions: triggers
README.md - GitHub Actions → Digest generator: runs
README.md - Digest generator → Product Hunt API: fetches products
scripts/product_hunt_list_to_md.py - Digest generator → Image lookup: gets images
scripts/product_hunt_list_to_md.py - Image lookup → Product page metadata: reads metadata
scripts/product_hunt_list_to_md.py - Digest generator → Keyword generation: generates keywords
scripts/product_hunt_list_to_md.py - Digest generator → Chinese translation: translates text
scripts/product_hunt_list_to_md.py - Keyword generation → OpenAI API: requests generation
scripts/product_hunt_list_to_md.py - Chinese translation → OpenAI API: requests translation
scripts/product_hunt_list_to_md.py - Digest generator → Markdown rendering: renders entries
scripts/product_hunt_list_to_md.py - Markdown rendering → Dated digest files: writes daily file
README.md - GitHub Actions → GitHub commit: commits results
README.md - Dated digest files → Online digest site: published online
README.md - Repair command → Image repair processor: runs
scripts/fix_images.py - Image repair processor → Dated digest files: updates missing images
scripts/fix_images.py - Image repair processor → Product Hunt API: queries images
scripts/fix_images.py - Image repair processor → Product page metadata: reads fallback metadata
scripts/fix_images.py - GitHub Actions → Downstream repository: notifies optionally
README.md