Coder Social home page Coder Social logo

baiduyun's Introduction

baiduyun

Python 百度云命令行工具,目前提供搜索、导出下载链接功能,实测可以使用迅雷等下载并加速。

environment

python2/3

需要包:requests, pyqt4(可选), prettytable

可通过 pip 安装:

pip install requests Qt.py prettytable

pyqt4 的安装参考这里

run

python baiduyun

or

./baiduyun

参数:

-b 如果没有 PyQt4 环境,可以加上 -b 参数使用本地浏览器执行

--no-check-certificate 不检查证书

程序运行后,会在用户的云盘 我的应用数据 目录下添加一个 应用文件夹,将文件移动到这个文件夹即可。

h 显示帮助菜单

l 列出所有的文件(夹)

s 搜索文件(夹)

d 获取文件下载地址(需输入显示文件列表或者搜索后的序号)

e 退出程序

demo

原理

通过 Qt 内置浏览器使用 OAuth2 登录百度,获取 access_token,使用 PCS API进行操作。

可自行在百度开发者中心注册应用并开通 PCS API,然后替换 config.ini 文件中 client_id 和 base_path 即可。其中 client_id 为应用 apikey,base_path 为填写的 pcs 应用目录。

baiduyun's People

Contributors

jun-ce avatar qcha0 avatar scusjs 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.