Unofficial Python API wrapper for 115.com
Project description
115 Wangpan (115网盘) is an unofficial Python API for 115.com, mainly pertinent to its “lixian” (offline) features. Currently, only limited features have been implemented. Supported Python verisons are 2.6, 2.7 and 3.3.
Documentation: http://115wangpan.readthedocs.org
Features
Authentication
Tasks management (BitTorrent currently supported)
File management
Installation
Install dependencies before installing the python package:
Ubuntu
$ sudo apt-get install libcurl4-openssl-dev python-dev
Fedora
$ sudo yum groupinstall "Development Tools"
$ sudo yum install libcurl libcurl-devel python-devel
Then, you can install with pip:
$ pip install 115wangpan
Usage
>>> import u115
>>> api = u115.API()
>>> api.login('username@example.com', 'password')
True
>>> tasks = api.get_tasks()
>>> task = tasks[0]
>>> print task.name
咲-Saki- 阿知賀編 episode of side-A
>>> print task.status_human
TRANSFERRED
>>> print task.size_human
1.6 GiB
>>> files = task.list()
>>> files
[<File: 第8局 修行.mkv>]
>>> f = files[0]
>>> f.get_download_url()
u'http://cdnuni.115.com/some-very-long-url.mkv'
>>> f.directory
<Directory: 咲-Saki- 阿知賀編 episode of side-A>
>>> f.directory.parent
<Directory: 离线下载>
Helpers
115wangpan-dl: file download script
115wangpan-up: torrent upload script
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
115wangpan-0.3.1.tar.gz
(14.1 kB
view details)
File details
Details for the file 115wangpan-0.3.1.tar.gz
.
File metadata
- Download URL: 115wangpan-0.3.1.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef7fa7a670bf0821666a980515843b9b40e94bc7292f67025fe49eb78cd383b7 |
|
MD5 | c9279f8dadb16f3e83111acb4e010555 |
|
BLAKE2b-256 | 3cc2255c1137cb6a86ce7fe63b31508f2b5b5714c99a53d80d512b984c370f39 |