把Github网站自己star的项目导出管理

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 安装目录找到: Python39Libsite-packagesclickutils.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
https://www.cnblogs.com/onecool/p/14153207.html
原文地址:https://www.cnblogs.com/onecool/p/14153343.html