Github 網站star了很多開源項目,有時候用到了查找不便。本來打算整理一下,又覺得太多,太費時間,偶然看到有人已經做好并且開源了。
開源地址:
https://github.com/maguowei/starred
使用方法:
1、安裝python
官網:https://www.python.org/downloads/
給出鏈接點擊下載
2、安裝的時候自定義位置,默認位置太難找了。還有環境變量那個勾選一下啊。
3、開始運行 cmd ,在黑窗口運行
pip install starred
成功之后再運行
starred --username 你的用戶 --sort > README.md
如果出現錯誤
UnicodeEncodeError: 'gbk' codec can't encode character '\U0001f525' in position 55: illegal multibyte sequence
不要慌。在python 安裝目錄找到: Python39\Lib\site-packages\click\utils.py 記事本打開,在文件中找到 def echo(message=None, file=None, nl=True, err=False, color=None): 后面加入一行
message = message.encode("utf-8")
注意對齊方式。message 和下面的"對齊。保存。
def echo(message=None, file=None, nl=True, err=False, color=None): message = message.encode("utf-8") """Prints a message plus a newline to the given file or stdout. On first sight, this looks like the print function, but it has improved support for handling Unicode and binary data that does not fail no matter how badly configured the system is.
4、utils.py修改好之后再次運行命令。
starred --username 你的用戶 --sort > mystar.md
等待一會,就會生成mystar.md 我的是在c:\用戶\當前用戶 目錄。
如果找不到,可以修改一下生成路徑。
starred --username 你的用戶 --sort > d:\mystar.md
成品DEMO
http://www.rzrgm.cn/onecool/p/14153207.html
浙公網安備 33010602011771號