Giter Club home page Giter Club logo

baidu-free-transfer's Introduction

baidu-free-transfer

百度网盘文件转存工具(绕过免费用户每次只能转存500个文件的限制)

为什么会有这个工具

我们在使用百度网盘的时候经常要将别人分享的文件(夹)转存到自己网盘里。以前在PC端是没有限制的,现在对于免费用户会有每次500个文件的上限。这样对于分享的文件数较多的场景非常麻烦,因此想到开发一个小工具来实现这样的目的。

目前github上已经有一些相同功能的项目,如:BaiduFilesTransfers_Pro。但实际使用之后发现这个项目的实现有些缺陷,而且代码也不太好改,索性重新实现一下。

使用方法

$ python3 -m pip install -r requirements.txt
$ python3 -m baidutransfer $url -C $cookie -p $pwd
  • $url 是百度网盘的分享地址,如:https://pan.baidu.com/s/1yQ7wutp3m1XtEhsigf_X6Ahttps://pan.baidu.com/share/init?surl=yQ7wutp3m1XtEhsigf_X6A
  • $cookie 是网页登录到百度网盘后开发者工具获取到的cookie
  • $pwd 是分享提取码,如果没有提取码不需要传这个参数

由于cookie可以多次使用,因此支持将cookie保存在yaml格式的配置文件中,格式如下:

cookie: "XXX=12345;"

工具会默认读取当前目录下的config.yaml文件,如果不是该文件名,需要使用-c /path/to/config.yaml参数指定配置文件路径。使用配置文件指定cookie时,不再需要使用-C参数指定cookie了。

baidu-free-transfer's People

Contributors

drunkdream 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.