mozillazg / python-shanbay

提供一系列操作扇贝网 (www.shanbay.com) 的 API(不再维护)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

登录显示Network Trouble

standin000 opened this issue · comments

shanbay -u xxx -p xxx
Login...
Network trouble!

请问是API变了吗?谢谢!

@standin000 你可能搞错了,这个项目没有提供命令行工具。

啊?pip安装了后有命令行啊,那这个命令行要怎么用,谢谢!

@standin000 你的 pip 安装命令是什么?你应该是装的别的项目的工具。
我也不知道你说的那个命令行怎么用,因为我不知道你用的是哪个项目的程序。

pip install shanbay --user
然后就有shanbay的命令行
`$ ./shanbay --help
usage: shanbay [-h] [-V] [-s SETTINGS] [-u USERNAME] [-p PASSWORD] [-e | -E]
[-i | -I] [-a | -A]
[--color {black,white,red,green,yellow,blue,magenta,cyan,gray}]
[--plugin {youdao}] [--example | --disable-example]
[--english | --disable-english]

An command line tool for shanbay.com.

optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit
-s SETTINGS, --settings SETTINGS
the settings file of the application
-u USERNAME, --username USERNAME
the account username of shanbay.com
-p PASSWORD, --password PASSWORD
the account password of shanbay.com
-e, --add-example enable "Add example" feature
-E, --disable-add-example
disable "Add example" feature
-i, --iciba enable "Get data from iciba.com" feature
-I, --disable-iciba disable "Get data from iciba.com" feature
-a, --auto-play enable "Auto play audio" feature
-A, --disable-auto-play
disable "Auto play audio" feature
--color {black,white,red,green,yellow,blue,magenta,cyan,gray}
colorize keyword (default: green)
--plugin {youdao} enable plugin
--example, --enable-example
enable examples
--disable-example disable examples
--english enable english definition
--disable-english disable english definition
`
我报的错误是指这个命令

@standin000 你装的应该是: pip install pyshanb

那个项目已经停止不再维护了,详见: mozillazg/PyShanb#5

好吧, 这个工具不能开放给个人使用吗?谢谢

@standin000 这个工具是开源的,代码在 https://github.com/mozillazg/PyShanb ,如果你想继续使用的话需要自行修改代码,解决无法使用的问题。