AI Personal Learning
and practical guidance

Automatically generates daily Product Hunt Hot Product lists

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

  1. pre-conditions::
    • Python 3.x
    • GitHub Accounts and Repositories
    • OpenAI API Key
    • Product Hunt API Credentials
  2. clone warehouse::
    git clone https://github.com/ViggoZ/producthunt-daily-hot.git
    cd producthunt-daily-hot
    
  3. Installing Python dependencies: Ensure that Python 3.x is installed on your system, then install the required dependency packages:
    pip install -r requirements.txt
    
  4. Setting up GitHub Secrets: Add the following Secrets to your GitHub repository:
    • OPENAI_API_KEY: Your OpenAI API key
    • PRODUCTHUNT_CLIENT_ID: your Product Hunt API client ID
    • PRODUCTHUNT_CLIENT_SECRET: Your Product Hunt API Client Key
    • PAT: Individual access tokens for pushing changes to the repository
  5. 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.

 

 

Deployment based on Worker.js

Chief AI Sharing CircleThis content has been hidden by the author, please enter the verification code to view the content
Captcha:
Please pay attention to this site WeChat public number, reply "CAPTCHA, a type of challenge-response test (computing)", get the verification code. Search in WeChat for "Chief AI Sharing Circle"or"Looks-AI"or WeChat scanning the right side of the QR code can be concerned about this site WeChat public number.

AI Easy Learning

The layman's guide to getting started with AI

Help you learn how to utilize AI tools at a low cost and from a zero base.AI, like office software, is an essential skill for everyone. Mastering AI will give you an edge in your job search and half the effort in your future work and studies.

View Details>
May not be reproduced without permission:Chief AI Sharing Circle " Automatically generates daily Product Hunt Hot Product lists

Chief AI Sharing Circle

Chief AI Sharing Circle specializes in AI learning, providing comprehensive AI learning content, AI tools and hands-on guidance. Our goal is to help users master AI technology and explore the unlimited potential of AI together through high-quality content and practical experience sharing. Whether you are an AI beginner or a senior expert, this is the ideal place for you to gain knowledge, improve your skills and realize innovation.

Contact Us
en_USEnglish