Giter VIP home page Giter VIP logo

Comments (4)

mozillazg avatar mozillazg commented on June 3, 2024

@jameswnzrf 嗯,我看看

from baidu-pcs-python-sdk.

ly0 avatar ly0 commented on June 3, 2024

requests不支持streaming,requests_toolbelt.MultipartEncoder 有现成的代码。
https://github.com/sigmavirus24/requests-toolbelt

body = MultipartEncoder(file)
headers = {
    "Content-Type": body.content_type
}
response = self.session.post(api, data=body, verify=False,headers=headers,**kwargs)

from baidu-pcs-python-sdk.

mozillazg avatar mozillazg commented on June 3, 2024

@ly0 嗯,我是看了你的项目才知道的这个用法。
我记得你当时说 PCS 不再支持百度网盘了,我当时看了一下,情况是这样的:

  • 我在开发者控制台里找不到看 token 的地方了(之前建的测试项目的 token 过期了,并且测试项目也被百度删除了),所以没法测试。
  • 百度关于 PCS 的文档已经被删除,所以这个项目可以结束了?

from baidu-pcs-python-sdk.

ly0 avatar ly0 commented on June 3, 2024

那个时候确实是关闭了,现在似乎又重新开放申请了。但是需要审核。
相关的链接
http://developer.baidu.com/console#manage/apilist!appid=APPID
http://developer.baidu.com/wiki/index.php?title=docs/pcs/rest/file_data_apis_list

from baidu-pcs-python-sdk.

Related Issues (10)

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.