更新今日数据

This commit is contained in:
2025-11-26 20:10:11 +08:00
parent fb1d3d5a56
commit 4fc896977d
12 changed files with 7625 additions and 4475 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,72 +0,0 @@
#!/usr/bin/env python3
"""
添加感兴趣标记字段脚本
为articles表添加is_interested字段默认值为0
"""
import sqlite3
import os
from loguru import logger
def add_interested_field():
"""为articles表添加is_interested字段"""
# 获取当前脚本所在目录的数据库文件路径
script_dir = os.path.dirname(os.path.abspath(__file__))
db_path = os.path.join(script_dir, "tophub_data.db")
# 检查数据库文件是否存在
if not os.path.exists(db_path):
logger.error(f"数据库文件不存在: {db_path}")
return False
try:
# 连接数据库
conn = sqlite3.connect(db_path)
cursor = conn.cursor()
# 检查is_interested字段是否已存在
cursor.execute("PRAGMA table_info(articles)")
columns = cursor.fetchall()
column_names = [column[1] for column in columns]
if "is_interested" in column_names:
logger.info("is_interested字段已存在无需添加")
conn.close()
return True
# 添加is_interested字段默认值为0
logger.info("正在添加is_interested字段...")
cursor.execute("ALTER TABLE articles ADD COLUMN is_interested INTEGER DEFAULT 0")
# 提交更改
conn.commit()
logger.info("成功添加is_interested字段")
# 验证字段是否添加成功
cursor.execute("PRAGMA table_info(articles)")
columns = cursor.fetchall()
column_names = [column[1] for column in columns]
if "is_interested" in column_names:
logger.info("验证成功is_interested字段已添加到articles表")
else:
logger.error("验证失败is_interested字段未成功添加")
conn.close()
return False
conn.close()
return True
except sqlite3.Error as e:
logger.error(f"数据库操作出错: {str(e)}")
return False
except Exception as e:
logger.error(f"添加字段时出错: {str(e)}")
return False
if __name__ == "__main__":
logger.add("db_modify.log", rotation="10 MB", level="INFO")
if add_interested_field():
logger.info("数据库修改完成")
else:
logger.error("数据库修改失败")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@@ -0,0 +1,44 @@
{
"click_records": [
{
"timestamp": "2025-11-26 19:24:08",
"type": "click",
"x": "制作人链接",
"y": "点击制作人链接在当前窗口打开",
"selector": "",
"description": ""
}
],
"dom_selection_records": [
{
"timestamp": "2025-11-26 19:23:48",
"type": "dom_selection",
"selector": "//h1",
"description": "产品名称"
},
{
"timestamp": "2025-11-26 19:23:48",
"type": "dom_selection",
"selector": "//*[@class=\"relative text-16 font-normal text-gray-700\"]//div",
"description": "产品简介"
},
{
"timestamp": "2025-11-26 19:23:48",
"type": "dom_selection",
"selector": "//*[@class=\"flex flex-row gap-2\"]//div/div[2]/span/p",
"description": "用户数"
},
{
"timestamp": "2025-11-26 19:24:08",
"type": "dom_selection",
"selector": "//span[contains(@class, \"absolute\")]",
"description": "制作人span标签"
},
{
"timestamp": "2025-11-26 19:24:08",
"type": "dom_selection",
"selector": "//span[contains(@class, \"absolute\")]/parent::a",
"description": "制作人链接"
}
]
}

Binary file not shown.

7
product_info.json Normal file
View File

@@ -0,0 +1,7 @@
{
"name": "PaletteBrain",
"introduction": "PaletteBrain is a macOS application that lets you use ChatGPT with any application by using a shortcut. Create custom templates with your own shortcuts or use the default templates provided.",
"user_count": "225 followers",
"maker_link": "https://www.producthunt.com/products/raycast",
"maker_statement": "Hey Product Hunt 👋If you're new to Raycast: Think of it as your command center for Windows. Hit \"Alt + Space\", type what you need, and go. Launch apps, search files, run extensions like GitHub or Notion, ask AI. All without touching your mouse.Why we built this:We spent the last 5 years building Raycast for Mac. Hundreds of thousands of people now use it daily to cut through the noise. But Windows users deserve the same. Your tools shouldn't get in the way. They should help you focus and get things done. So today, we bring the same experience to your PC.What makes Raycast different:• Custom file search - Windows doesn't have proper indexing, so we built our own. Fast and accurate.• Hundreds of extensions - Control your smart home, search Notion, manage GitHub, translate text, find GIFs. Or build your own!• Free AI during beta - Ask questions to get answers with citations without a subscription needed.• Built for Windows - Familiar keyboard shortcuts, design that fits right in, and you can even launch your favorite games.What's coming next:We'll add AI Chat, Notes, and more features in the months ahead. We ship fast and want your feedback. So please let us know what you miss.Yesterday was Windows' 40th anniversary. It felt like the right moment to launch this. Try it and let us know what you think. What should we build next?"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 701 KiB

After

Width:  |  Height:  |  Size: 379 KiB

File diff suppressed because it is too large Load Diff

View File

@@ -1,11 +1,11 @@
=== Product Hunt 产品信息 ===
产品名称: Ostivities
产品名称: TilePix
产品简介: Ostivities is a premier event management and ticketing platform designed to revolutionize event planning and execution. With intuitive tools for event creation, ticketing, and marketing, Ostivities provides event organizers with everything they need to host successful events while maximizing audience engagement.
产品简介: TilePix is your all-in-one mobile solution for creating pixel art, tilesets, and tilemaps. With a full suite of intuitive tools and smooth performance, its perfect for prototyping, designing game assets, or building multiple entire levels—from retro top-down adventures to side-scrolling platformers—right from your device at home or on the go!
制作人发言: Ostivities 2.0
制作人发言: 未获取
用户数: 230 followers
用户数: 158 followers
提取时间: 2025-11-25 21:28:39
提取时间: 2025-11-26 20:09:54

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff