python_github_calendar_api icon indicating copy to clipboard operation
python_github_calendar_api copied to clipboard

用python获取github上的用户贡献信息,部署于vercel的api

Results 13 python_github_calendar_api issues
Sort by recently updated
recently updated
newest added

需要在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 ![image](https://github.com/Zfour/python_github_calendar_api/assets/66169324/18dc9a93-7af8-4d79-9771-c834c5c8dec5) ⭐已修复

![image](https://github.com/Zfour/python_github_calendar_api/assets/40554571/76b5448a-f5e2-4e1b-843a-51993689aded)

原版: ![49a77f9684aa1bbc2271c23e2ee94e83](https://user-images.githubusercontent.com/62864752/210919291-1dbf35f0-b9e5-4281-86a0-bdcba4f650b3.png) 改版后: ![da44dba543bbe9aca7104e850671e0d9](https://user-images.githubusercontent.com/62864752/210919297-2e73954c-e314-4611-93a1-dcfe1159b7e4.png) 更新了正则使其可以继续运行 ```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 并填写到此存储库的设置当中。 ![image](https://github.com/Zfour/python_github_calendar_api/assets/37256067/46af5f47-de3e-4d9a-8d59-a682a5cf738b) 并且还需要在...