xunleiBasic API for Xunlei Lixian | |
Download |
xunlei Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Ivan Diao
- Publisher web site:
- http://github.com/adieu/
xunlei Tags
xunlei Description
xunlei is a basic Python API for Xunlei Lixian.API UsageCreate a Xunlei object:import xunleixunlei_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() functionDownload a task:xunlei_obj.dowload(url, filename)Download a task with file size checking and resume:xunlei_obj.smart_download(url, filename, size)CLI UsageEdit config file at ~/xunleirc, add settings for username and passwordList xunlei tasks:xunlei_cli dashboardDownload a task:xunlei_cli download TASK_IDProduct's homepage
xunlei Related Software