Comments (4)
@jameswnzrf 嗯,我看看
from baidu-pcs-python-sdk.
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.
@ly0 嗯,我是看了你的项目才知道的这个用法。
我记得你当时说 PCS 不再支持百度网盘了,我当时看了一下,情况是这样的:
- 我在开发者控制台里找不到看 token 的地方了(之前建的测试项目的 token 过期了,并且测试项目也被百度删除了),所以没法测试。
- 百度关于 PCS 的文档已经被删除,所以这个项目可以结束了?
from baidu-pcs-python-sdk.
那个时候确实是关闭了,现在似乎又重新开放申请了。但是需要审核。
相关的链接
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)
- 上传zip文件的时候抛出异常 HOT 3
- 提示app id is empty HOT 4
- 好像已经不能用了 HOT 6
- 转存的api HOT 2
- 百度api有更新 HOT 2
- SSL verify=True 似乎也不会有问题 HOT 4
- access_token 如何获得 HOT 1
- 如何添加bt种子的离线下载任务? HOT 2
- python3 无法安装 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baidu-pcs-python-sdk.