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.3.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.3.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_instagram-0.3.0.tar.gz
Algorithm Hash digest
SHA256 aad6e244aabb90d0a9e6ff641350ff9fd8c4b7f8385631b975201f929d092844
MD5 18c7891e0ec4bcbad95feb129de12411
BLAKE2b-256 e53371b175539d4d53418057a340c72254d165aaca557c09e91303098a702cb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_instagram-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b683c35cd1fdd48a54e5c01f8728a43375f1cb27c1e2b206c5c659fe468d577
MD5 15340e7c4a6595b189ab38724af0ef32
BLAKE2b-256 26909659729a40c111c91e85c2bbdbc2b1c9f797a0e7890a1ad6aacd4aaeda6d

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