• Stars
    star
    106
  • Rank 325,871 (Top 7 %)
  • Language
    Python
  • License
    BSD 2-Clause "Sim...
  • Created about 10 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

(Deprecated) Unofficial Python API wrapper SDK for 115.com (115网盘)

115 Wangpan

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('[email protected]', '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

More Repositories

1

notes

Shichao's Notes
HTML
1,097
star
2

leetcode-python

LeetCode problems in Python
Python
494
star
3

ooc

Object-Oriented Programming With ANSI-C
C
248
star
4

twitter-photos

Simple, fast command-line tool to get photos from Twitter accounts
Python
171
star
5

soundmeter

Simple real-time sound meter
Python
81
star
6

homura

Python downloader with progress
Python
40
star
7

leetcode-ruby

LeetCode problems in Ruby
Ruby
31
star
8

examples_unix

Mastering Algorithms with C
C
28
star
9

hacking

Hacking: The Art of Exploitation, 2nd Edition
C
23
star
10

apue.3e

Advanced Programming in the UNIX® Environment, Third Edition
C
14
star
11

unpv13e

Unix Network Programming, Volume 1: The Sockets Networking API (3rd Edition)
C
11
star
12

procps-ng-3.3.10

procps-ng-3.3.10
C
10
star
13

momo

Simple file manager that organizes scattered files and resources
Python
5
star
14

GeoPort

Django-based geo-social platform
Python
3
star
15

docker-shadowsocks-libev

Dockerized shadowsocks-libev
Shell
3
star
16

tlpi-dist

The Linux Programming Interface
C
2
star
17

glibc-2.21

The GNU C Library (glibc) 2.21
C
2
star
18

uhuf

CLI tool to get GitLab repository files using API
Shell
2
star
19

ctci

Cracking the Coding Interview (5th Edition) problems
Python
2
star
20

PPP

Python and Parallel Programming
Python
2
star
21

adium-sh

The missing shell for Adium
Python
2
star
22

rsa

RSA cryptosystem
C
2
star
23

twtg

The Way to Go - Code Examples and Exercises
Go
2
star
24

blog-source

Tinkerer source code for blog
Python
2
star
25

practice

Data structures, algorithms and hacks for practice
Python
2
star
26

blog

Shichao's Blog
HTML
1
star
27

hello

GNU Hello
C
1
star
28

screen-lftp

Helper tool to lftp mirror
Shell
1
star
29

bash-4.3

GNU Bash 4.3
C
1
star
30

dot-vim

.vim and .vimrc
Vim Script
1
star
31

tcp-fsm

Finite-state machine of TCP
Python
1
star
32

hbc

HandBrake Cutter
Shell
1
star
33

udp-pinger

A simple UDP pinger
Python
1
star
34

pystress

Simple CPU stresser in Python
Python
1
star
35

otomad

Oto MAD
1
star