Skip to main content

一个基于 RapidAPI 的 NoneBot2 Instagram 解析插件

Project description

nonebot-plugin-instagram

✨ 一个基于 RapidAPI 的 NoneBot2 Instagram 解析插件 ✨

📖 介绍

一个基于 RapidAPI 的 NoneBot2 Instagram 解析插件,可以在群聊和私聊解析 instagram 链接发送相关图片或视频。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-instagram
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-instagram
pdm
pdm add nonebot-plugin-instagram
poetry
poetry add nonebot-plugin-instagram
conda
conda install nonebot-plugin-instagram

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot-plugin-instagram"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
INSTAGRAM_RAPIDAPI_KEY RapidAPI Key
INSTAGRAM_RAPIDAPI_HOST instagram-looter2.p.rapidapi.com 如果 API Host 不是 looter2,可以修改

获取 rapidapi

注册账号:https://rapidapi.com/auth/sign-up

搜索"Instagram",找到Instagram Looter,点击右侧"Subscribe to test",选择"Start Free Plan" - "Subscribe"

部署后记录下"x-rapidapi-key",填入INSTAGRAM_RAPIDAPI_KEY配置。

🎉 使用

在群里或者私聊发送 instagram 链接

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_instagram-0.2.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_instagram-0.2.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_instagram-0.2.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_instagram-0.2.0.tar.gz
Algorithm Hash digest
SHA256 90ae812f852caf3b7b875870db3b93f21ac45b5afdbbde9d4e3ba4d29937bcfb
MD5 286c2a4442dfc6c0fe0ad9df96b9709a
BLAKE2b-256 ee88ecbc2df927d6dc61ce6b6571836109f62dea71a8b143ab37cd089c195222

See more details on using hashes here.

File details

Details for the file nonebot_plugin_instagram-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_instagram-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ec6b57c0833c09202306a9c800d60ed611361ec0485f2a6bb2c351b42293c46
MD5 755fcbc91ddf12603584a8d5fc9f6d7b
BLAKE2b-256 d17bf6f566475d6065a2752704c6e941b1c15ca03d9d9f17fa8e5727468ecd06

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