python_github_calendar_api icon indicating copy to clipboard operation
python_github_calendar_api copied to clipboard

Github 页面改版,更新 `regex` 规则

Open zkeq opened this issue 1 year ago • 7 comments

原版: 49a77f9684aa1bbc2271c23e2ee94e83 改版后: da44dba543bbe9aca7104e850671e0d9

更新了正则使其可以继续运行

    datacountreg = re.compile(r'<span class="sr-only">(.*?) contribution')

No 替换成 0

    datacount = list(map(int, [0 if i == "No" else i for i in datacount]))

2023.7.16 再次跟进正则

zkeq avatar Jan 06 '23 02:01 zkeq