Skip to main content

Unofficial Python API wrapper for 115.com

Project description

Build PyPI version

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.

Features

  • Authentication

  • Tasks management (BitTorrent currently supported)

  • File management

Installation

$ 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: 离线下载>

Project details


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.2.1.tar.gz (14.3 kB view details)

Uploaded Source

File details

Details for the file 115wangpan-0.2.1.tar.gz.

File metadata

  • Download URL: 115wangpan-0.2.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for 115wangpan-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9fab5d01b6413c097eb3dd193097c59edd071074852ec5d80853df17e43dff5c
MD5 f25642f1d30da97dd9af4319f99aaf00
BLAKE2b-256 6ca1ff0995ae34f359ff67a2e460b0f3d709e8daf2b4e9c15222061cb4003daa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page