Skip to main content

Unofficial Python API wrapper for 115.com

Project description

Build PyPI version

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.

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

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for 115wangpan-0.7.0.tar.gz
Algorithm Hash digest
SHA256 b107c276ead3862ef93f22aab7ebbcf5368454c8356c6dcfcd252b5792e24120
MD5 4dbc15b09c3157bd7ac347b8aab8c4c0
BLAKE2b-256 0443874ae34821760aa8ef26910f1c3d30e70c6aba2e1108600c242b03ac2b15

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