我对 Python 和命令行都很陌生,但我正在尝试使用 Python 模块https://github.com/ckreibich/scholar.py/blob/master/README.md来获取某些来自谷歌学术的结果。经过一些更改(它找不到模块)认为我成功了import
,至少我没有收到任何错误消息(但没有确认)。
但是接下来该怎么办?我尝试scholar.py -c 1 --author "albert einstein" --phrase "quantum theory"
在 Python 内部和外部编写,但只收到错误消息,例如:
文件 "",第 1 行 Academic.py -c 1 --author "albert einstein" --phrase "quantum theory" ^ SyntaxError: invalid syntax
(^ 指向 1)。
使用模块的正确方法是什么?我错过了什么吗?