General Introduction
Product Hunt Daily Chinese Hotlist is an automated tool based on GitHub Actions that generates a daily list of popular products on Product Hunt at regular intervals and submits it to the GitHub repository as a Markdown file. The project is designed to help users quickly see what's hot every day, with detailed product information and high-quality Chinese translations.
Function List
- Automatically fetch the previous day's Product Hunt Top 30 product data.
- Generate concise and easy-to-understand Chinese keywords
- High-quality translation using OpenAI's GPT-4 model
- Generate Markdown files containing product data, keywords and translation descriptions
- Automatically generate and submit daily Markdown files through GitHub Actions.
- Supports manually triggered or timed content generation
- Scripts are easy to extend or modify
Using Help
Installation steps
- pre-conditions::
- Python 3.x
- GitHub Accounts and Repositories
- OpenAI API Key
- Product Hunt API Credentials
- clone warehouse::
git clone https://github.com/ViggoZ/producthunt-daily-hot.git cd producthunt-daily-hot
- Installing Python dependencies: Ensure that Python 3.x is installed on your system, then install the required dependency packages:
pip install -r requirements.txt
- Setting up GitHub Secrets: Add the following Secrets to your GitHub repository:
OPENAI_API_KEY
: Your OpenAI API keyPRODUCTHUNT_CLIENT_ID
: your Product Hunt API client IDPRODUCTHUNT_CLIENT_SECRET
: Your Product Hunt API Client KeyPAT
: Individual access tokens for pushing changes to the repository
- Configuring a GitHub Actions Workflow: Workflows are defined in
.github/workflows/generate_markdown.yml
The workflow runs automatically every day at 08:01 UTC (16:01 BST). This workflow runs automatically every day at 08:01 UTC (16:01 BST) or can be triggered manually.
Instructions for use
Once set up, GitHub Action automatically generates and submits a Markdown file containing Product Hunt's top products of the day. The files are stored in the data/
directory. You can modify the scripts/product_hunt_list_to_md.py
file to customize the format of the generated file or to add additional content. If desired, you can define the format of the generated file or add additional content in the .github/workflows/generate_markdown.yml
Adjusts the run time of the timed task in the
sample output
The generated files are stored in the data/
directory. Each file starts with PH-daily-YYYYY-MM-DD.md
The format of the name.