{"id":5908,"date":"2024-09-10T01:16:14","date_gmt":"2024-09-09T17:16:14","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=5908"},"modified":"2024-09-10T01:16:14","modified_gmt":"2024-09-09T17:16:14","slug":"zidongshengchengmeiripr","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/de\/zidongshengchengmeiripr\/","title":{"rendered":"\u81ea\u52a8\u751f\u6210\u6bcf\u65e5Product Hunt\u70ed\u95e8\u4ea7\u54c1\u699c\u5355"},"content":{"rendered":"<p>Product Hunt \u6bcf\u65e5\u4e2d\u6587\u70ed\u699c\u662f\u4e00\u4e2a\u57fa\u4e8e GitHub Actions \u7684\u81ea\u52a8\u5316\u5de5\u5177\uff0c\u80fd\u591f\u6bcf\u5929\u5b9a\u65f6\u751f\u6210 Product Hunt \u4e0a\u7684\u70ed\u95e8\u4ea7\u54c1\u699c\u5355\uff0c\u5e76\u4ee5 Markdown \u6587\u4ef6\u7684\u5f62\u5f0f\u63d0\u4ea4\u5230 GitHub \u4ed3\u5e93\u4e2d\u3002\u8be5\u9879\u76ee\u65e8\u5728\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u67e5\u770b\u6bcf\u65e5\u7684\u70ed\u95e8\u4ea7\u54c1\uff0c\u5e76\u63d0\u4f9b\u8be6\u7ec6\u7684\u4ea7\u54c1\u4fe1\u606f\u548c\u9ad8\u8d28\u91cf\u7684\u4e2d\u6587\u7ffb\u8bd1\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li>\u81ea\u52a8\u83b7\u53d6\u524d\u4e00\u5929\u7684 Product Hunt Top 30 \u4ea7\u54c1\u6570\u636e<\/li>\n<li>\u751f\u6210\u7b80\u6d01\u6613\u61c2\u7684\u4e2d\u6587\u5173\u952e\u8bcd<\/li>\n<li>\u4f7f\u7528 OpenAI \u7684 GPT-4 \u6a21\u578b\u8fdb\u884c\u9ad8\u8d28\u91cf\u7ffb\u8bd1<\/li>\n<li>\u751f\u6210\u5305\u542b\u4ea7\u54c1\u6570\u636e\u3001\u5173\u952e\u8bcd\u548c\u7ffb\u8bd1\u63cf\u8ff0\u7684 Markdown \u6587\u4ef6<\/li>\n<li>\u901a\u8fc7 GitHub Actions \u81ea\u52a8\u751f\u6210\u5e76\u63d0\u4ea4\u6bcf\u65e5\u7684 Markdown \u6587\u4ef6<\/li>\n<li>\u652f\u6301\u624b\u52a8\u89e6\u53d1\u6216\u5b9a\u65f6\u751f\u6210\u5185\u5bb9<\/li>\n<li>\u811a\u672c\u6613\u4e8e\u6269\u5c55\u6216\u4fee\u6539<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6b65\u9aa4<\/h3>\n<ol>\n<li><strong>\u524d\u7f6e\u6761\u4ef6<\/strong>\uff1a\n<ul>\n<li>Python 3.x<\/li>\n<li>GitHub \u8d26\u6237\u53ca\u4ed3\u5e93<\/li>\n<li>OpenAI API Key<\/li>\n<li>Product Hunt API \u51ed\u8bc1<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u514b\u9686\u4ed3\u5e93<\/strong>\uff1a\n<pre><code class=\"language-bash\">git <span class=\"hljs-built_in\">clone<\/span> https:\/\/github.com\/ViggoZ\/producthunt-daily-hot.git\r\n<span class=\"hljs-built_in\">cd<\/span> producthunt-daily-hot\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u5b89\u88c5 Python \u4f9d\u8d56<\/strong>\uff1a \u786e\u4fdd\u60a8\u7684\u7cfb\u7edf\u5df2\u5b89\u88c5 Python 3.x\uff0c\u7136\u540e\u5b89\u88c5\u6240\u9700\u7684\u4f9d\u8d56\u5305\uff1a\n<pre><code class=\"language-bash\">pip install -r requirements.txt\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u8bbe\u7f6e GitHub Secrets<\/strong>\uff1a \u5728\u60a8\u7684 GitHub \u4ed3\u5e93\u4e2d\u6dfb\u52a0\u4ee5\u4e0b Secrets\uff1a\n<ul>\n<li><code>OPENAI_API_KEY<\/code>: \u60a8\u7684 OpenAI API \u5bc6\u94a5<\/li>\n<li><code>PRODUCTHUNT_CLIENT_ID<\/code>: \u60a8\u7684 Product Hunt API \u5ba2\u6237\u7aef ID<\/li>\n<li><code>PRODUCTHUNT_CLIENT_SECRET<\/code>: \u60a8\u7684 Product Hunt API \u5ba2\u6237\u7aef\u5bc6\u94a5<\/li>\n<li><code>PAT<\/code>: \u7528\u4e8e\u63a8\u9001\u66f4\u6539\u5230\u4ed3\u5e93\u7684\u4e2a\u4eba\u8bbf\u95ee\u4ee4\u724c<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u914d\u7f6e GitHub Actions \u5de5\u4f5c\u6d41<\/strong>\uff1a \u5de5\u4f5c\u6d41\u5b9a\u4e49\u5728 <code>.github\/workflows\/generate_markdown.yml<\/code> \u4e2d\u3002\u8be5\u5de5\u4f5c\u6d41\u6bcf\u5929 UTC \u65f6\u95f4 08:01\uff08\u5317\u4eac\u65f6\u95f4 16:01\uff09\u81ea\u52a8\u8fd0\u884c\uff0c\u4e5f\u53ef\u4ee5\u624b\u52a8\u89e6\u53d1\u3002<\/li>\n<\/ol>\n<h3>\u4f7f\u7528\u8bf4\u660e<\/h3>\n<p>\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0cGitHub Action \u5c06\u81ea\u52a8\u751f\u6210\u5e76\u63d0\u4ea4\u5305\u542b Product Hunt \u6bcf\u65e5\u70ed\u95e8\u4ea7\u54c1\u7684 Markdown \u6587\u4ef6\u3002\u6587\u4ef6\u5b58\u50a8\u5728 <code>data\/<\/code> \u76ee\u5f55\u4e0b\u3002\u60a8\u53ef\u4ee5\u4fee\u6539 <code>scripts\/product_hunt_list_to_md.py<\/code> \u6587\u4ef6\u6765\u81ea\u5b9a\u4e49\u751f\u6210\u6587\u4ef6\u7684\u683c\u5f0f\u6216\u6dfb\u52a0\u989d\u5916\u5185\u5bb9\u3002\u5982\u679c\u9700\u8981\uff0c\u53ef\u4ee5\u5728 <code>.github\/workflows\/generate_markdown.yml<\/code> \u4e2d\u8c03\u6574\u5b9a\u65f6\u4efb\u52a1\u7684\u8fd0\u884c\u65f6\u95f4\u3002<\/p>\n<h3>\u793a\u4f8b\u8f93\u51fa<\/h3>\n<p>\u751f\u6210\u7684\u6587\u4ef6\u5b58\u50a8\u5728 <code>data\/<\/code> \u76ee\u5f55\u4e0b\u3002\u6bcf\u4e2a\u6587\u4ef6\u4ee5 <code>PH-daily-YYYY-MM-DD.md<\/code> \u7684\u683c\u5f0f\u547d\u540d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>\u57fa\u4e8eWorker.js\u90e8\u7f72<\/h2>\n<p><div class=\"huoduan_hide_box\" style=\"border:1px dashed #F60; padding:10px; margin:10px 0; line-height:200%; color:#F00; background-color:#FFF4FF; overflow:hidden; clear:both;\"><img loading=\"lazy\" decoding=\"async\" class=\"wxpic\" align=\"right\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/05\/d8668ed8023fbe2.jpg\" style=\"width:150px;height:150px;margin-left:20px;display:inline;border:none\" width=\"150\" height=\"150\"  alt=\"AI\u751f\u4ea7\u529b\u5e94\u7528\" \/><span style=\"font-size:18px;\">\u6b64\u5904\u5185\u5bb9\u5df2\u7ecf\u88ab\u4f5c\u8005\u9690\u85cf\uff0c\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801\u67e5\u770b\u5185\u5bb9<\/span><form method=\"post\" style=\"margin:10px 0;\"><span class=\"yzts\" style=\"font-size:18px;float:left;\">\u9a8c\u8bc1\u7801\uff1a<\/span><input name=\"huoduan_verifycode\" id=\"verifycode\" type=\"text\" value=\"\" style=\"border:none;float:left;width:80px; height:32px; line-height:30px; padding:0 5px; border:1px solid #FF6600;-moz-border-radius: 0px;  -webkit-border-radius: 0px;  border-radius:0px;\" \/><input id=\"verifybtn\" style=\"border:none;float:left;width:80px; height:32px; line-height:32px; padding:0 5px; background-color:#F60; text-align:center; border:none; cursor:pointer; color:#FFF;-moz-border-radius: 0px; font-size:14px;  -webkit-border-radius: 0px;  border-radius:0px;\" name=\"\" type=\"submit\" value=\"\u63d0\u4ea4\u67e5\u770b\" \/><\/form><div style=\"clear:left;\"><\/div><span style=\"color:#00BF30\">\u8bf7\u5173\u6ce8\u672c\u7ad9\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u56de\u590d\u201c<span style=\"color:blue\">\u9a8c\u8bc1\u7801<\/span>\u201d\uff0c\u83b7\u53d6\u9a8c\u8bc1\u7801\u3002\u5728\u5fae\u4fe1\u91cc\u641c\u7d22\u201c<span style=\"color:blue\">AI\u751f\u4ea7\u529b\u5e94\u7528<\/span>\u201d\u6216\u8005\u201c<span style=\"color:blue\">Artificial9527<\/span>\u201d\u6216\u8005\u5fae\u4fe1\u626b\u63cf\u53f3\u4fa7\u4e8c\u7ef4\u7801\u90fd\u53ef\u4ee5\u5173\u6ce8\u672c\u7ad9\u5fae\u4fe1\u516c\u4f17\u53f7\u3002<\/span><div class=\"cl\"><\/div><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Product Hunt \u6bcf\u65e5\u4e2d\u6587\u70ed\u699c\u662f\u4e00\u4e2a\u57fa\u4e8e GitHub Actions \u7684\u81ea\u52a8\u5316\u5de5\u5177\uff0c\u80fd\u591f\u6bcf\u5929\u5b9a\u65f6\u751f\u6210 Product Hunt \u4e0a\u7684\u70ed\u95e8\u4ea7\u54c1\u699c\u5355\uff0c\u5e76\u4ee5 Markdown \u6587\u4ef6\u7684\u5f62\u5f0f\u63d0\u4ea4\u5230 GitHub \u4ed3\u5e93\u4e2d\u3002\u8be5\u9879\u76ee\u65e8\u5728\u5e2e\u52a9\u7528\u6237\u5feb&#8230;<\/p>\n","protected":false},"author":1,"featured_media":60983,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230],"class_list":["post-5908","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts\/5908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/comments?post=5908"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts\/5908\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/media\/60983"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/media?parent=5908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/categories?post=5908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/tags?post=5908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}