Skip to content
Python API for xunlei lixian
Find file
Latest commit e473203 May 5, 2012 @adieu Added long description.
Failed to load latest commit information.
README.rst Improve readme Dec 4, 2011 Added long description. May 5, 2012 Ensure size shoud be a long. Feb 17, 2012
xunlei_cli Initial commit Dec 4, 2011


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
Something went wrong with that request. Please try again.