python_github_calendar_api
python_github_calendar_api copied to clipboard
用python获取github上的用户贡献信息,部署于vercel的api
需要在vercel上把node的版本改为18.x。 详细路径为Settings-General-Node.js Version
失效代码详见 [Barry-Flynn/python_github_calendar_api](https://github.com/Barry-Flynn/python_github_calendar_api/blob/main/api/index.py) ,需要再次更新正则表达式
详细请见:https://github.com/Zfour/python_github_calendar_api/issues/20 因为本pr是在不改变原请求格式的情况强制截去vercel自动添加的等号,而且vercel官方后续还有改回去的可能性,所以后来创建了使用 `https://apiurl/api?user={username}` 格式符合kv规范的fork https://github.com/LYXOfficial/gitcalendarapi/ 或https://github.com/Barry-Flynn/python_github_calendar_api/ 前端修改请见issue
https://github.com/rr210/py_gitcalendar/commit/dadd21c0938e785a38decb533c774ea7b27d7bca  ⭐已修复

原版:  改版后:  更新了正则使其可以继续运行 ```py datacountreg = re.compile(r'(.*?) contribution') ``` 将 `No` 替换成 `0` ```py datacount = list(map(int, [0 if i == "No" else i for i in datacount]))...
由于近期中国联通、中国移动及其他一些网络服务供应商对 Vercel 进行了网络访问限制(sni阻断或重定向到国家反诈中心以及工信部反诈中心的提示页面),因此本人提出基于 Docker 部署本项目的方案,望采纳。 本人编写了相关 Dockerfile 及 GitHub CI 等相关文件,能实现 master 分支变动触发 workflow 或手动触发 workflow,workflow 运行后会自动构建 Docker 镜像并推送到 Docker Hub。 若采纳本人的代码,还需要在 Docker Hub 申请一个 Access Token 并填写到此存储库的设置当中。  并且还需要在...