Coder Social home page Coder Social logo

baiduwp-bot's Introduction

baiduwp-bot

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

体验一下:@getletbot

功能预览

enter description here

enter description here

enter description here

enter description here

获取单个文件链接

enter description here

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

enter description here

enter description here

enter description here

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 里的配置信息

#########################################
# 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 - 百度网盘解析

baiduwp-bot's People

Contributors

z-mio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.