An open API service indexing awesome lists of open source software.

https://github.com/z-mio/baiduwp-bot

一个基于baiduwp-php API的百度网盘解析bot
https://github.com/z-mio/baiduwp-bot

bot python3 telegram-bot

Last synced: 8 months ago
JSON representation

一个基于baiduwp-php API的百度网盘解析bot

Awesome Lists containing this project

README

          

# baiduwp-bot
一个基于[baiduwp-php](https://github.com/yuantuo666/baiduwp-php) API的百度网盘解析bot

体验一下:[@getletbot](https://t.me/getletbot)

功能预览

![enter description here](https://github.com/z-mio/baiduwp-bot/blob/f56f9b9912227d523942e0c732111759a7c7b7a0/image/1.png)

![enter description here](https://github.com/z-mio/baiduwp-bot/blob/f56f9b9912227d523942e0c732111759a7c7b7a0/image/2.png)

![enter description here](https://github.com/z-mio/baiduwp-bot/blob/f56f9b9912227d523942e0c732111759a7c7b7a0/image/3.png)

![enter description here](https://github.com/z-mio/baiduwp-bot/blob/f56f9b9912227d523942e0c732111759a7c7b7a0/image/4.png)

### 获取单个文件链接

![enter description here](https://github.com/z-mio/baiduwp-bot/blob/f56f9b9912227d523942e0c732111759a7c7b7a0/image/5.png)

### 获取当前文件夹下所有文件链接

![enter description here](https://github.com/z-mio/baiduwp-bot/blob/f56f9b9912227d523942e0c732111759a7c7b7a0/image/6.png)

![enter description here](https://github.com/z-mio/baiduwp-bot/blob/f56f9b9912227d523942e0c732111759a7c7b7a0/image/7.png)

![enter description here](https://github.com/z-mio/baiduwp-bot/blob/f56f9b9912227d523942e0c732111759a7c7b7a0/image/8.png)

## 1.安装

**1.安装 python3-pip**

```
apt install python3-pip
```

**2.将项目克隆到本地**
```
git clone https://github.com/z-mio/baiduwp-bot.git && cd baiduwp-bot && pip3 install -r requirements.txt
```

**3.修改 bot.py 里的配置信息**

``` python
#########################################
# bot

api_id = '123456' # 在 https://my.telegram.org/apps 获取

api_hash = '6f51a2b93a159b8f8ca07dafed4a776c' # 在 https://my.telegram.org/apps 获取

bot_token = '6980461837:AAH2-gGWToP_7hcyhzKbbq04NZYW7YE4i6B' # 在 https://t.me/BotFather 获取

members = [1447511233, -100123456789] # 允许使用解析的 用户、群组、频道(群组和频道id需要加上-100)可通过 https://t.me/getletbot 获取id

baidu_version: Literal['3', '4'] = '4' # 你部署的baiduwp-php版本

baidu_url = 'https://' # 你的百度解析地址

baidu_password = '' # 解析密码(不是后台密码)
#########################################
# 代理支持“socks4”、“socks5”和“http”
scheme = '' # 'http'
hostname = '' # '127.0.0.1'
port = '' # '7890'
#########################################
```

## 2.运行

**前台启动bot**

```
python3 bot.py
```

**后台启动bot**

```
nohup python3 bot.py > botlog.log 2>&1 &
```

## 3.使用

发送`/menu`自动设置菜单

指令:

```
/bd - 百度网盘解析
```