Skip to main content

Basic API for Xunlei Lixian

Project description

API Usage

Create a Xunlei object:

import xunlei
xunlei_obj = xunlei.Xunlei(USERNAME, PASSWORD, COOKIE_FILE_PATH)

List Xunlei lixian tasks:

items = xunlei_obj.dashboard()

List a bittorrent task:

items = xunlei_obj.list_bt(url, task_id) # url and task_id are from dashboard() function

Download a task:

xunlei_obj.dowload(url, filename)

Download a task with file size checking and resume:

xunlei_obj.smart_download(url, filename, size)

CLI Usage

Edit config file at ~/xunleirc, add settings for username and password

List xunlei tasks:

xunlei_cli dashboard

Download a task:

xunlei_cli download TASK_ID

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

xunlei-0.1.2.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file xunlei-0.1.2.tar.gz.

File metadata

  • Download URL: xunlei-0.1.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xunlei-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1e2047a64d9a4c3640bec7d1c5f49530a53a57121f290aa8ddd7832715361384
MD5 0601b0ce5087624f5fd2c850c4a7fbd8
BLAKE2b-256 a711d0ade895ebb0a55e0d78396195d72d40ce81a1f00aad99973067d10066e0

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