mediafire api的python包
pymediafire的Python项目详细描述
此模块提供MediaFire’s REST API的子集。 只完成基本的工作:上传、下载、创建文件夹、读取文件夹。 我们支持http(s)代理和大文件。
如果你有问题,补丁等,请随时联系作者直接在schampailler在天网dot be。在推特上关注我们:@arakowa1。
请注意,此模块是,不能由MediaFire认可。
示例
让我们看一个简单的会话:
from pymediafire import MediaFireSession # Open a session with your credential (check MediaFire's developper page # for all the information). It's basically email, password, appid, sessionkey. # You can pass http(s) proxy information as well; check the source code # for full constructor parameters. mf = MediaFireSession('youremail@gonzo.be', 'password', '123123', '7kjshfksjdhf435lkj435345kj') # Load the root folder (no parameter == root folder) f = mf.load_folder() # The following print will give a list of pymediafire objects representing # files and folders on the server. print(f) # [FILE: dbcr.txt 198 bytes 2013-12-04 14:41:56 ma32h6y9fkmdmub, # FOLDER: backup_folder q3w4bx45i432c] # Download the first file of the loaded folder and give it # the same name as the one it has on MediaFire. mf.download(f[0], f[0].filename)