115 Wangpan (115网盘 or 115云) is an unofficial Python API and SDK for 115.com. Supported Python verisons are 2.6, 2.7, 3.3, 3.4.
Documentation: http://115wangpan.readthedocs.org
Features
Authentication
Persistent session
Tasks management: BitTorrent and links
Files management: uploading, downloading, searching, and editing
Installation
libcurl is required. Install dependencies before installing the python package:
Ubuntu:
$ sudo apt-get install build-essential 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
Or, if you want to install the latest from GitHub:
$ pip install git+https://github.com/shichao-an/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.url
u'http://cdnuni.115.com/some-very-long-url.mkv'
>>> f.directory
<Directory: 咲-Saki- 阿知賀編 episode of side-A>
>>> f.directory.parent
<Directory: 离线下载>
CLI commands
115 down: for downloading files
115 up: for creating tasks from torrents and links
Release files for 115wangpan 0.7.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| 115wangpan-0.7.6.tar.gz | 22.0 kB | Details |
Release files / 115wangpan-0.7.6.tar.gz
| Download URL | 115wangpan-0.7.6.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5db6b7880a59ac9b525b5add08e7f3702dca6f361c2e074220100b6d48befd0c
|
|
BLAKE2b-256 checksum How to use checksums |
4fee831703aab8f38adf178eb7dd9d954bbc49b37f6e0268180ff39a9a729429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |