本来想着从电子书网站上爬一些电子书分享给大家 https://www.pdfdrive.com/ (需要翻墙) 貌似百度现在不提供接口来分享链接了。这样爬虫做好了,上传百度做好了,也无济于事了哦。 目前已经可以上传>4MB的文件。 from email import header import sys import requests, re, urllib, os, time import logging import hashlib import json logging.basicConfig(format= "%(asctime)s - %(pathname)s[line:%(lineno)d] ""- %(levelname)s: %(message)s" ,level=logging.INFO) 算了,真恶心,代码贴不到头条上,需要的给我私信,单独发吧。 上传一个大的文件结果如下图