/README.rst

https://github.com/872409/lixian.xunlei · ReStructuredText · 88 lines · 59 code · 29 blank · 0 comment · 0 complexity · e388bc779afffe1ba8408587e6b64486 MD5 · raw file

  1. LiXian.XunLei: api of lixian.xunlei.com in python
  2. =================================================
  3. LiXian.XunLei is a python api base on http://lixian.xunlei.com/ , and a web project using this api.
  4. 迅雷离线API是基于迅雷离线网页版开发的python接口并在这个接口基础上实现一套离线资源分享网站
  5. Features
  6. --------
  7. Api for lixian.xunlei.com.
  8. - Including add/fetch/delete/delay tasks or files.
  9. - Normal/bt/thunder/magnet url support and automatically distinguish.
  10. - Ulimit offline space.
  11. - task will never expired.
  12. A website
  13. - Multi-user with permission control support.
  14. - Async
  15. - Search
  16. - Tags
  17. - Share
  18. - Download with wget/aria2
  19. A plugin for flexget
  20. - add task by flexget
  21. - get all files as input from xunlei lixian
  22. Usage
  23. -----
  24. Just ::
  25. python main.py --username=<xunlei_vip_username> --password=<your_password>
  26. or you can using a config file ::
  27. username = "<your_username>"
  28. password = "<your_password>"
  29. and start with command ::
  30. python main.py --f=<config>
  31. Getting help ::
  32. python main.py --help
  33. FlexGet Plugin
  34. --------------
  35. ::
  36. cp libs/jsfunctionParser.py libs/lixian_api.py libs/plugin_lixian_xunlei.py ~/.flexget/plugins/
  37. and add config ::
  38. xunlei_lixian:
  39. username: "<your username>"
  40. password: "<your password>"
  41. presets<http://flexget.com/wiki/Plugins/preset> may help if you want to add it to all feeds.
  42. Requires
  43. --------
  44. ::
  45. 2.6 <= python < 3.0
  46. easy_install tornado (>=2.1.1)
  47. easy_install requests (>= 0.10.0)
  48. easy_install pyparsing
  49. easy_install sqlalchemy
  50. if using mysql ::
  51. easy_install mysql-python
  52. if mysql_config is not found ::
  53. apt-get install mysqlclient-dev
  54. else ::
  55. apt-get install sqlite
  56. License
  57. -------
  58. lixian.xunlei is licensed under GNU Lesser General Public License.
  59. You may get a copy of the GNU Lesser General Public License from <http://www.gnu.org/licenses/lgpl.txt>