一个基于Python3的Bot。目前支持以Docker的方式部署在vps上。支持Aria2、本子下载、网易云音乐下载、Pixiv榜单下载、Youtue-dl支持、搜图。

Overview

介绍

一个基于Python3的Bot。目前支持以Docker的方式部署在vps上。

Readme Card

主要功能:

  • 文件管理

  • 网页面板

  • Aria2

    • 自动化安装Aria2,自定义密钥
    • 用Bot进行简单的Aria2端控制(添加任务、暂停任务、删除任务)
    • 显示下载进度
    • 任务完成后通过rclone上传(显示上传进度),最新版rclone已支持世纪互联
    • 支持aria2面板类工具rpc连接(get、post方式)
    • 支持自动上传面板类工具rpc连接添加的任务自动上传(不显示进度)。通过面板添加的任务上传方式更改为P大的上传脚本,保持原有路径。
    • 采用P大的配置,自动添加tracker。
    • 下载OneDrive、sharepoint公开分享链接中的文件,保持文件路径推送到Aria2.已实现。采用项目地址:OneDriveShareLinkPushAria2
    • Rss自动下载,已有成品,尚未对接
  • Rclone

    • rclone官方lsd,lsf方法的适配
    • rclone copy的适配,即双盘互传,支持查看传输进度
    • rclone copyurl方式上传文件,实时显示进度
    • 支持aria2面板类工具rpc连接(get、post方式)
    • TG按键式查看rclone目录
    • 将当前目录文件命名为emby扫描格式
    • 通过Bot添加rclone配置、清空rclone配置
    • 获取单个或多个文件夹的分享链接(gd,od)
  • Pixiv

    • 根据pid获取图片
    • 下载画师的全部作品,支持打包上传网盘、打包发送tg、图片方式发送tg、telegraph(网页)方式发送图片。打包格式为zip。
    • 下载日榜,周榜、月榜,支持打包上传网盘、打包发送tg、图片方式发送tg、telegraph(网页)方式发送图片。打包格式为zip。
    • 支持指定日期的榜单下载
  • 影音相关

    • 使用YouTube-dl下载视频,支持上传网盘或发送到tg。默认最高画质,目前完美适配YouTube和哔哩哔哩(不含番剧)
    • 网易云音乐下载,支持id下载,搜索下载,整个歌单下载,支持发送到tg和上传网盘
    • 新增将视频转为MP3格式发送、上传
    • 视频与字幕混流
    • 常用影音格式格式互转
  • Telegram

    • 只有当前用户的命令生效
    • 发送file id获取文件
    • 发送文件获取file id
    • 发送TG文件上传到网盘
    • 支持命令查看Bot运行时间和剩余空间
    • 添加Bot白名单
    • 支持群组内使用。Ps:已有群组版本,正在考虑如何混合适配
  • 图片相关

    • 合并搜图机器人,支持saucenaoWhatAnimeascii2diqdb
    • 搜索下载哔咔的本子,支持ZIP文件格式发送到TG和上传网盘
    • 对接 nhentai,下载nhentai本子并支持以ZIP文件格式发送TG、ZIP格式上传网盘、网页格式发送到TG
    • 本子的搜索,支持哔咔、ehentai、nhentai
    • saucenao搜图支持快捷搜索

Bot command

通过在 @BotFather 设置命令

start - 查看Bot状态
help - 获取Bot的使用帮助
pixivauthor - 对pixiv画师作品操作
pixivtopall - 对pixiv排行榜进行操作
pixivtopillust - 对插画排行榜进行操作
pixivpid - 发送pixiv该id的图片
magfile - 推送种子文件至aria2下载后上传至网盘
mirror - 推送直链至aria2下载上传至网盘
mirrortg - 推送直链至aria2下载发送到TG
magnet - 推送磁力链接至aria2下载后上传至网盘
downtgfile - 发送TG文件并上传至网盘
rclonecopy - 用rclone在网盘间传输
rclonelsd - 用rclone显示网盘文件夹
rclone - 用rclone显示文件夹内详细信息
rclonecopyurl - 用rclonecopyurl的方式直接上传直链文件
getfileid - 发送文件获取fileid
getfile - 发送fileid来获取文件
video - 发送视频链接
neteaseid - 通过id获取歌曲信息
searchsong - 搜索网易云音乐歌曲
playlist - 获取歌单信息
odshare - 下载公开的od、sp分享链接文件并上传网盘
odprivate - 下载域内的od、sp分享链接上传到网盘
nhentai - 下载nhentai中对应id的本子
ehentai - 下载nhentai中对应id的本子
picacgsearch - 在哔咔中搜索本子,支持ZIP上传到网盘和发送到TG
ehentaisearch - 在ehentai中搜索本子,支持ZIP上传到网盘和发送到TG、发送网页
nhentaisearch - 在nhentai中搜索本子,支持ZIP上传到网盘和发送到TG、发送网页

安装

Docker 部署命令:

评论区反馈docker不支持arm架构,推测原因为原docker为amd64架构,目前只在amd64上测试成功 目前理论支持所含架构,具体没有进行真机测试

docker run -d \
    --name arpt \
    -e Api_hash=xxx \
    -e Api_id=xxx \
    -e Aria2_secret=xxx \
    -e Remote=yun \
    -e Telegram_bot_api=xxx \
    -e Telegram_user_id=xxx \
    -e Upload=xxx \
    -p 8868:8868 \
   benchao/arpt:v2.0.6

配置解释

Api_hash Api_id 这两项在https://my.telegram.org中注册应用后得到

Aria2_secret    Aria2的密匙

Telegram_bot_api    Bot的API,在@BotFather申请获得

Telegram_user_id    使用者的TG id,可在@userinfobot处获得

Remote  上传目的地的rclone盘符

Upload  上传文件夹名称,后面不需要加/

在Docker运行后访问ip:port访问文件管理器,在/.config/rclone下文件夹新建rclone.conf,粘贴自己的rclone配置。 PS:有人反馈此处配置不成功,可尝试在/root/.config/rclone也添加配置,bot运行 /rclone 盘符 ,可以查看是否成功 关于上传方法,将.conf文件拖入浏览器即可。

成功效果

Docker目前不支持自动更新,目前更新需要自行重装新镜像版本

可自行查看最新镜像版本号:查看地址

杂项说明

关于在面板配置Aria2的设置,ip为vps端口,端口为docker设定的端口 举例,若docker中命令为 -p 8868:8868 \ 则端口为8868 面板密钥填docker创建时你的Aria2_secret值

bug说明

1.下载文件时概率性出现99%,实际已完成上传,尚未解决

2.pixiv发送图片给我时概率性出现[400 PHOTO_INVALID_DIMENSIONS]: The photo dimensions are invalid (caused by "messages.UploadMedia")的错误,尚未找到原因1.1.7版本以后已修复,不符合尺寸的图片不进行发送(暴力解决)

效果展示

更新说明

v2.0.6

新增带有密码的公开分享链接的od、sp分享链接下载

新增需要登录账号的分享链接下载,需要同域账号的账号和密码

优化上述推送完成的显示

v2.0.5

新增本子的搜索,此版本支持哔咔、ehentai、nhentai

nhentai支持直接识别链接下载

v2.0.4

合并搜图机器人,支持saucenaoWhatAnimeascii2diqdb

搜索下载哔咔的本子,支持ZIP文件格式发送到TG和上传网盘

对接 nhentai,下载nhentai本子并支持以ZIP文件格式发送TG、ZIP格式上传网盘、网页格式发送到TG

v2.0.3

对接OneDriveShareLinkPushAria2的更新,支持sharepoint分享链接。

修复网易云歌单显示不全的问题。

v2.0.1

修复docker构建时rclone安装失败,修复网易云歌单下载到无版权音乐时整个歌单下载停止

v2.0.0

Bot开源,支持arm64,目前没有机子测试,理论可行

v1.1.7

修复pixiv发送到tg时因为尺寸不符合tg api要求报错,取消发送不符合尺寸的图片。

尝试修复下载卡99%的概率性问题,效果未知。

新增网易云音乐的下载,目前支持搜索下载,id下载,整个歌单下载,支持发送到tg和上传到网盘。API接口项目:NeteaseCloudMusicApi,目前使用的是本人的API,有黑胶会员,后续会支持自定义API地址。

QQ音乐如果有稳定接口项目,也可推荐对接Bot

v1.1.6

将pixivtop命令更改为pixivtopall,优化按键选择方式,新增插画榜和男性榜、女性榜、新人榜、原创榜,支持指定日期榜单下载

v1.1.5

取消pixivuser、pixivusertg、pixivuserphoto、pixivusertele

优化为单个命令pixivauthor

新增pixiv排行榜的下载(日榜、月榜、周榜),后续将增加插画榜和男性榜、女性榜等

v1.1.4

新增下载OneDrive 公开分享链接中的文件,保持文件路径推送到Aria2.已实现。采用项目地址:OneDriveShareLinkPushAria2

修复downtgfile命令下载视频失败的错误

优化/rclone命令的显示

感谢下面大佬的贡献

Readme Card

Readme Card

Readme Card

Readme Card

Readme Card

Readme Card

Readme Card

Readme Card

Readme Card

The public discord bot, created by: primitt, further developed by: duino-coin team.

Duino Stats Mini A public Duino-Stats Discord bot. Click this link to invite the bot to your server. License Duino Stats Mini distributed under the MI

primboi 8 Mar 14, 2022
Automatically pulls specified repository whenever a specified file is pushed. Great for working collaboratively when you need to run something locally.

autopull Simple python tool that allows you to automatically pull from a github repository whenever a file with a specified name is uploaded installat

carreb 0 Sep 27, 2022
TORNADO CASH Proxy Pancakeswap Sniper BOT 2022-V1 (MAC WINDOWS ANDROID LINUX)

TORNADO CASH Pancakeswap Sniper BOT 2022-V1 (MAC WINDOWS ANDROID LINUX) ⭐️ A ful

Crypto Trader 1 Jan 06, 2022
Bringing Ethereum Virtual Machine to StarkNet at warp speed!

Warp Warp brings EVM compatible languages to StarkNet, making it possible to transpile Ethereum smart contracts to Cairo, and use them on StarkNet. Ta

Nethermind 700 Dec 26, 2022
The scope of this project will be to build a data ware house on Google Cloud Platform that will help answer common business questions as well as powering dashboards

The scope of this project will be to build a data ware house on Google Cloud Platform that will help answer common business questions as well as powering dashboards.

Shweta_kumawat 2 Jan 20, 2022
𝗖𝝠𝝦𝝩𝝠𝝞𝝥 𝝦𝗥𝝞𝗖𝝽°™️ 🇱🇰 Is An All In One Media Inline Bot Made For Inline Your Media Effectively With Some Advance Security Tools♥️

𝗖𝝠𝝦𝝩𝝠𝝞𝝥 𝝦𝗥𝝞𝗖𝝽° ™️ 🇱🇰 𝗙𝗘𝝠𝝩𝗨𝗥𝗘𝗦 Auto Filter IMDB Admin Commands Broadcast Index IMDB Search Inline Search Random Pics Ids & User I

Kɪꜱᴀʀᴀ Pᴇꜱᴀɴᴊɪᴛʜ Pᴇʀᴇʀᴀ 〄 13 Jun 21, 2022
UP It is a script to notify of a new update of your project, done in python and using GitHub, to modify the versions to notify users.

UP-Updater UP It is a script to notify of a new update of your project, done in python and using GitHub, to modify the versions to notify users. Requi

Made in 4 Oct 28, 2021
Connect your Nintendo Switch playing status to Discord!

Disclaimer: Unfortunately, it appears that Nintendo has removed returning self-Presence in their API as of recently, making this project near obsolete

Deltaion Lee 145 Dec 30, 2022
A telegram bot does not allow channels to send messages to the telegram supergroup

Channel Message Handler Getting started Installation $ git clone https://github.com/AbhijithNT/GroupChannelHandler.git Change directory $ cd ChannelMe

Abhijith N T 0 Dec 26, 2021
The program for obtaining a horoscope in Python using API from rapidapi.com site.

Python horoscope The program allows you to get a horoscope for your zodiac sign and immediately translate it into almost any language. Step 1 The firs

Architect 0 Dec 25, 2021
Automatically mass follows tons of NameMC profiles.

Automatically mass follows tons of NameMC profiles. (Creates REAL traffic to your profile)

Jam 3 Jun 29, 2022
Transcript-Extractor-Bot - Yet another Telegram Voice Recognition bot but using vosk and supports 20+ languages

transcript extractor Yet another Telegram Voice Recognition bot but using vosk a

6 Oct 21, 2022
Singer Tap for dbt Artifacts built with the Meltano SDK

tap-dbt-artifacts tap-dbt-artifacts is a Singer tap for dbtArtifacts. Built with the Meltano SDK for Singer Taps.

Prratek Ramchandani 9 Nov 25, 2022
A Python API for Connected 2

connected API for Connected 2 api for the { connected 2 } programmer : api report api follow api check username api forget password api Search api cha

2 Jun 05, 2022
BT CCXT Store

bt-ccxt-store-cn backtrader是一个非常好的开源量化回测平台,我自己也时常用它,backtrader也能接入实盘,而bt-ccxt-store就是帮助backtrader接入数字货币实盘交易的一个插件,但是bt-ccxt-store的某些实现并不是很好,无节制的网络轮询,一些

moses 40 Dec 31, 2022
A telegram bot to track whales activities on multiple blockchains.

Telegram Bot : Whale Watcher A straightforward telegram bot written in python to track whales activity on multiple blockchains, using whale-alert API

Laurenz Bougan 1 Dec 10, 2021
Automatically compile an AWS Service Control Policy that ONLY allows AWS services that are compliant with your preferred compliance frameworks.

aws-allowlister Automatically compile an AWS Service Control Policy that ONLY allows AWS services that are compliant with your preferred compliance fr

Salesforce 189 Dec 08, 2022
A repository of publicly verifiable token Sale contracts

Token-Sale-Plutus-Contract A repository of publicly verifiable token sale and royalty contracts. This will be the storage solution since it is easily

Logical Mechanism 29 Aug 18, 2022
Paid Udemy Courses with Coupons

Freedemy Paid Udemy Courses with Coupons Steps to run pip3 install -r requirements.txt python3 free-courses.py Then you can click the Enroll Link and

GOKUL A.P 23 Dec 14, 2022
A Telegram bot to index Chinese and Japanese group contents, works with @lilydjwg/luoxu.

luoxu-bot luoxu-bot 是类似于 luoxu-web 的 CJK 友好的 Telegram Bot,依赖于 luoxu 所创建的后端。 测试环境 Python 3.7.9 pip 21.1.2 开发中使用到的 Telethon 需要 Python 3+ 配置 前往 luoxu 根据相

TigerBeanst 10 Nov 18, 2022