Giter Site home page Giter Site logo

aliyunpan's Introduction

aliyunpan

阿里云盘cli

获取refresh_token

token

注意

  • web端获取的refresh_token暂时无法分享
  1. 可以指定账号密码登入
  2. 可以通过手机端查找日志获取refresh_token

/sdcard/Android/data/com.alicloud.databox/files/logs/trace/userId/yunpan/latest.log

配置refresh_token

$ echo "refresh_token: 'xxxxx'"  >  ~/.config/aliyunpan.yaml

配置账号(可选)

$ echo "username: 'xxxxx'"  >  ~/.config/aliyunpan.yaml
$ echo "password: 'xxxxx'"  >>  ~/.config/aliyunpan.yaml

功能

指令 描述
download (d) 下载文件/文件夹
ls (dir,l,list) 列目录
mv (move) 移动文件/文件夹
rm (del,delete) 删除文件/文件夹
tree (show,t) 查看文件树
upload (u) 上传文件/文件夹
share (s) 分享文件
mkdir (m) 创建文件夹

使用指南

  • 查看帮助
$ python main.py -h
查看详情
参数 描述
-h, --help 查看帮助
--version 查看版本
-c, --config-file 指定配置文件
-t 指定REFRESH_TOKEN
-u 指定账号
-p 指定密码
-d, --depth 文件递归深度
  • 查看指令参数
$ python main.py COMMAND -h
查看详情
指令 参数 描述
download -p, --file 选择文件(多个)
ls -l 查看详情
share -f, --file-id 指定file_id
share -t, --expire-sec 分享过期时间(秒),默认最大14400
upload -p, --file 选择文件(多个)
upload -t, --time-out 上传超时时间(秒)
upload -r, --retry 上传失败重试次数
upload -f, --force 强制覆盖文件

致谢

感谢 zhjc1124/aliyundrive 的登录接口参考

aliyunpan's People

Contributors

haoshenqi0123 avatar jiahut avatar wxy1343 avatar

Watchers

 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.