Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录显示Network Trouble #8

Open
standin000 opened this issue May 22, 2017 · 7 comments
Open

登录显示Network Trouble #8

standin000 opened this issue May 22, 2017 · 7 comments

Comments

@standin000
Copy link

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

请问是API变了吗?谢谢!

@mozillazg
Copy link
Owner

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

@standin000
Copy link
Author

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

@mozillazg
Copy link
Owner

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

@standin000
Copy link
Author

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
`
我报的错误是指这个命令

@mozillazg
Copy link
Owner

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

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

@standin000
Copy link
Author

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

@mozillazg
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants