Code Monkey home page Code Monkey logo

baidupansdk's Introduction

BaiduPanSDK

因为NAS环境资源有限,用不了linux的百度网盘桌面端。最近发现百度网盘有开放平台接入了,干脆自己捣鼓了一个能在NAS上面跑的界面。

支持下载和删除网盘文件,下载支持断点续传。下载完后默认启用MD5验证。

申请密钥

https://pan.baidu.com/union/home 去官网申请

安装&使用

git clone https://github.com/520xcy/BaiduPanSDK.git

或直接下载解压

cd BaiduPanSDK
pip3 install -r requirments.txt
python3 web.py

首次运行后会自动在根目录生成.env文件,编辑它

{
"username": "admin", 
"password": "admin888",  #这是登录管理页面的用户名和密码,不是百度网盘的用户名密码
"ak": "", #开放平台申请到的AppKey
"at": "", #空
"sk": "", #SecretKey
"aid": "" #Appid
}

重新执行python3 web.py,看到服务已启动的提示后浏览器访问http://IP:8182

注意事项

默认下载存放在根目录下的Download文件夹内

linux要后台运行可以使用Screen等程序

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.