Skip to main content

多平台热榜数据获取 CLI 工具

Project description

Hotboard

Test Lint License Python

Hotboard 是一个多平台热榜数据获取 CLI 工具,支持 46+ 个平台的热榜数据抓取。

✨ 特性

  • 🎯 统一接口:所有平台使用相同的 CLI 命令格式
  • � 多种输出格式:支持 JSON 和 Markdown 格式
  • 🚀 异步高效:基于 aiohttp 的异步请求
  • 🛠️ 类型安全:完整的类型注解支持
  • 🔌 OpenClaw 集成:可作为 OpenClaw skill 使用(https://github.com/hotboard/hotboard-skill

📋 支持的平台

综合资讯

百度热搜、微博热搜、知乎热榜、腾讯新闻、新浪、新浪新闻、澎湃新闻、网易新闻

视频娱乐

B 站、抖音、快手、AcFun

科技媒体

36kr、虎嗅、极客公园、爱范儿、少数派、IT 之家、数字尾巴

开发者社区

GitHub Trending、Hacker News、掘金、CSDN、V2EX、Linux.do、NodeSeek、HelloGitHub、51CTO、HostLoc

游戏社区

NGA、LOL、米游社、游研社

体育社区

虎扑

社交阅读

豆瓣、贴吧、简书、果壳、水木社区、微信读书

国际平台

New York Times

实用工具

地震速报、天气预警、历史上的今天

其他

吾爱破解

🚀 快速开始

安装

从 PyPI 安装(推荐):

pip install hotboard

从源码安装(开发者):

# 克隆仓库
git clone https://github.com/hotboard/hotboard.git
cd hotboard

# 安装
pip install -e .

使用

获取热榜数据(Markdown 格式):

hotboard github
hotboard baidu
hotboard zhihu

获取 JSON 格式:

hotboard github --format json

查看帮助:

hotboard github --help

🤖 OpenClaw 集成

Hotboard 支持作为 OpenClaw skill 使用,实现自然语言交互。

Skill 位于独立仓库:hotboard/hotboard-skill

安装方式

从 ClawHub 安装(推荐):

clawhub install hotboard

从 GitHub 安装:

cd ~/.openclaw/skills/
git clone https://github.com/hotboard/hotboard-skill

使用示例

  • "帮我看看 GitHub 上有什么热门项目"
  • "查看知乎热榜"
  • "推荐一些适合程序员的热榜平台"

📦 项目结构

hotboard/
├── src/hotboard/
│   ├── cli.py              # CLI 入口
│   ├── logger.py           # 日志
│   ├── types.py            # 数据类型
│   ├── utils.py            # 工具函数
│   └── platforms/          # 平台实现
│       ├── github.py
│       ├── baidu.py
│       └── ...
├── tests/                  # 测试
├── DEVELOPMENT.md          # 开发规范
├── CONTRIBUTING.md         # 贡献指南
└── README.md               # 本文件

🔧 开发

查看 DEVELOPMENT.md 了解开发规范。

安装开发依赖:

bash scripts/dev.sh

运行测试:

pytest tests/

代码检查:

black .
ruff check .
pyright src

🤝 贡献

欢迎贡献!请查看 CONTRIBUTING.md 了解如何参与项目。

添加新平台

  1. src/hotboard/platforms/ 下创建新平台文件
  2. 遵循 DEVELOPMENT.md 中的规范
  3. 添加测试用例
  4. 提交 Pull Request

📄 许可证

本项目采用 Apache-2.0 许可证。

⚠️ 免责声明

  • 本项目仅供学习交流使用
  • 使用时请遵守各平台的服务条款和 robots.txt
  • 请合理控制请求频率,避免对目标平台造成压力
  • 数据来源于各平台公开接口,不保证实时性和完整性

🔗 相关链接

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hotboard-0.0.1.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hotboard-0.0.1-py3-none-any.whl (77.5 kB view details)

Uploaded Python 3

File details

Details for the file hotboard-0.0.1.tar.gz.

File metadata

  • Download URL: hotboard-0.0.1.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for hotboard-0.0.1.tar.gz
Algorithm Hash digest
SHA256 99082f83ab80bb611dbd1e3933105cce049dcd1645d7b48409b7f8d0d185b611
MD5 c0b65a23f63c97cbd2c5bed56c51eabb
BLAKE2b-256 76f4060839d1853f1f4209d4b91f3d91a5bd682f9c51447ce58224806224fc36

See more details on using hashes here.

File details

Details for the file hotboard-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: hotboard-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 77.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for hotboard-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9b727fa3b3d25a177f5a190432e105bee1436dbe440547d7492e8e3ecb33e4f
MD5 5420c5e0cbadfdc467430ccc7c1ede46
BLAKE2b-256 c393dbc93bf67099e42eef8c94dadbda5bd74c6d240b78413b407c9e22727ff3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page