一个基于 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_instagram-0.3.1.tar.gz.
File metadata
- Download URL: nonebot_plugin_instagram-0.3.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76569568c270bad1f87e8eece2fae3adf4e6504641a8eb7e77b75d849a066633
|
|
| MD5 |
6b7b497d72b138f18fb8fde968e35dc8
|
|
| BLAKE2b-256 |
d0e89d36317c0eb3bc8955cae7fd6d407b58ac14dccb1bb06e3ff8a6fe0c7f7b
|
File details
Details for the file nonebot_plugin_instagram-0.3.1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_instagram-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eab88eaed9a04ff4ca134f44eda68bee2d5afe5c156541ea3bb0da78b79c4364
|
|
| MD5 |
3cab31ad1447277760d469e45c7f1f44
|
|
| BLAKE2b-256 |
e4ce583f8f97d6fed890fddcfc07f6678b2cbdf21d948caf12e2dffd837e95e7
|