Skip to main content

NoneBot2 插件:App Store 畅销榜查询

Project description

nonebot-plugin-appstore-gameranking

一个 NoneBot2 插件,实时查询 App Store 畅销榜,并输出指定游戏在榜单中的排名。

📦 插件介绍

  • 插件名:nonebot_plugin_appstore_gameranking
  • 功能:抓取 App Store 中国区畅销榜(Top Grossing),支持默认目标游戏排名、全榜输出、目标自定义、调试信息。
  • 主要命令:/appstore

⚙️ 功能与指令

/appstore(默认)

输出默认关注游戏的排名:

  • 原神·空月之歌
  • 崩坏:星穹铁道
  • 鸣潮
  • 明日方舟:终末地
  • 绝区零
  • 明日方舟

/appstore 帮助

/appstore 帮助

输出命令用法说明。

/appstore debug

/appstore debug

输出抓取的原始榜单前10条与筛选结果,用于调试。

/appstore 全榜

/appstore 全榜 20

输出前 N 名畅销榜(N 最大 200,默认 100)。

/appstore 目标 <游戏1,游戏2,...>

/appstore 目标 原神,崩坏:星穹铁道

输出指定目标游戏的排名(若未上榜则显示“未上榜(前100名内)”)。

🧩 安装

在 NoneBot 项目根目录使用 NB-CLI 安装(推荐):

nb plugin install nonebot-plugin-appstore-gameranking

也可以使用 pip 安装:

pip install nonebot-plugin-appstore-gameranking

pyproject.toml[tool.nonebot] 部分加入:

plugins = ["nonebot_plugin_appstore_gameranking"]

🧪 本地测试

在开发项目里直接运行 NoneBot,插件会自动注册 /appstore 命令。

🧠 源码结构

  • nonebot_plugin_appstore_gameranking/__init__.py:插件元信息
  • nonebot_plugin_appstore_gameranking/data.py:App Store 爬取与筛选辅助函数
  • nonebot_plugin_appstore_gameranking/handlers.py:指令解析与结果格式化
  • appstore_scraper_demo.py:demo 演示脚本

📌 注意

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

nonebot_plugin_appstore_gameranking-0.1.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file nonebot_plugin_appstore_gameranking-0.1.2.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_appstore_gameranking-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8603cf9f3f7587c3d51a60296ccc653342bdbf2ef620a50cac598cd4fb5a7ad1
MD5 fa8d1a102ac7a8b952b31fdc9fa7acb6
BLAKE2b-256 db07758e0708414688ebc033035a0cfb158f9cd4d6f68739b4bed7cecb94dd71

See more details on using hashes here.

File details

Details for the file nonebot_plugin_appstore_gameranking-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_appstore_gameranking-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8471a39d3e0929836070769f93ec5bf61b2550671849a1c1f8ca3c020b84826f
MD5 67e17695a8af946f8d440fa7be885673
BLAKE2b-256 0039b490ae26c2b03cadc846ac029c325d63f1aaa226965be870efbc29f1489c

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