MCPcopy Create free account

hub / github.com/ViggoZ/producthunt-daily-hot / functions

Functions23 in github.com/ViggoZ/producthunt-daily-hot

↓ 2 callersFunctionfix_markdown_file
修复 Markdown 文件中缺失的图片链接
scripts/fix_images.py:170
↓ 2 callersFunctionprocess_files_in_batches
分批处理文件,每批之间暂停一段时间
scripts/fix_images.py:218
↓ 2 callersFunctionrepublish_to_wordpress
重新发布指定的 Markdown 文件到 WordPress
scripts/republish_to_wordpress.py:11
↓ 2 callersMethodtranslate_text
使用OpenAI翻译文本内容
scripts/product_hunt_list_to_md.py:126
↓ 1 callersFunctionbatch_republish
批量重新发布指定日期范围内的 Markdown 文件
scripts/batch_republish.py:8
↓ 1 callersMethodconvert_to_beijing_time
将UTC时间转换为北京时间
scripts/product_hunt_list_to_md.py:156
↓ 1 callersFunctionfetch_mock_data
生成模拟数据用于测试
scripts/product_hunt_list_to_md.py:290
↓ 1 callersFunctionfetch_og_image_url
从网页获取 Open Graph 图片 URL(备用方法)
scripts/fix_images.py:126
↓ 1 callersMethodfetch_og_image_url
获取产品的Open Graph图片URL(备用方法)
scripts/product_hunt_list_to_md.py:71
↓ 1 callersFunctionfetch_product_hunt_data
从Product Hunt获取前一天的Top 30数据
scripts/product_hunt_list_to_md.py:212
↓ 1 callersFunctionfetch_product_image
从 Product Hunt API 获取产品图片 URL
scripts/fix_images.py:52
↓ 1 callersMethodgenerate_keywords
生成产品的关键词,显示在一行,用逗号分隔
scripts/product_hunt_list_to_md.py:90
↓ 1 callersFunctiongenerate_markdown
生成Markdown内容并保存到data目录
scripts/product_hunt_list_to_md.py:333
↓ 1 callersMethodget_image_url_from_media
从API返回的media字段中获取图片URL
scripts/product_hunt_list_to_md.py:47
↓ 1 callersFunctionget_producthunt_token
获取 Product Hunt 访问令牌
scripts/fix_images.py:20
↓ 1 callersFunctionget_producthunt_token
获取 Product Hunt 访问令牌
scripts/product_hunt_list_to_md.py:180
↓ 1 callersFunctionmain
()
scripts/fix_images.py:238
↓ 1 callersFunctionmain
()
scripts/republish_to_wordpress.py:85
↓ 1 callersFunctionmain
()
scripts/product_hunt_list_to_md.py:355
↓ 1 callersFunctionmain
()
scripts/batch_republish.py:41
↓ 1 callersFunctionpublish_to_wordpress
()
scripts/publish_to_wordpress.py:9
↓ 1 callersMethodto_markdown
返回产品数据的Markdown格式
scripts/product_hunt_list_to_md.py:163
Method__init__
(self, id: str, name: str, tagline: str, description: str, votesCount: int, createdAt: str, featuredAt: str, w
scripts/product_hunt_list_to_md.py:33