| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
一个获取各大网站热搜榜的 API 服务,使用 Python FastAPI 实现。
git clone <repository-url>
cd demopip install -r requirements.txtpython main.py服务将在 http://127.0.0.1:8000 启动
GET /all
GET /{platform}
platform 支持的值:
{
"code": 200,
"message": "success",
"data": [
{
"id": 1,
"title": "热搜标题",
"url": "链接地址",
"hot_value": "热度值",
"platform": "平台名称",
"rank": 1,
"created_at": "创建时间"
}
]
}demo/
├── main.py # 主程序入口
├── models/ # 数据模型
│ └── models.py
├── services/ # 服务实现
│ └── platform_services.py
└── utils/ # 工具函数
└── utils.py
Apache License 2.0
本项目参考了 api-for-hot-search-golang 的实现。
| Back | FazBrowse Home | New Git URL |