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.1.tar.gz (5.2 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.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_instagram-0.3.1.tar.gz
Algorithm Hash digest
SHA256 76569568c270bad1f87e8eece2fae3adf4e6504641a8eb7e77b75d849a066633
MD5 6b7b497d72b138f18fb8fde968e35dc8
BLAKE2b-256 d0e89d36317c0eb3bc8955cae7fd6d407b58ac14dccb1bb06e3ff8a6fe0c7f7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_instagram-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eab88eaed9a04ff4ca134f44eda68bee2d5afe5c156541ea3bb0da78b79c4364
MD5 3cab31ad1447277760d469e45c7f1f44
BLAKE2b-256 e4ce583f8f97d6fed890fddcfc07f6678b2cbdf21d948caf12e2dffd837e95e7

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