Code Monkey home page Code Monkey logo

python_github_calendar_api's Introduction

2022.9.4 公共域名墙了

可以先使用https://gitcalendar.zfe.space/api 或者使用vecel的自定义域名绑定 image image

如果你想部署自用的vercel api

①注册

首先前往 Vercel 官网,点击右上角的 sign up 进行注册。

image.png

极有可能遇到的 bug

若注册时提示 Error:This user account is blocked.Contact [email protected] for more information.

这是由于 Vercel 不支持大部分国内邮箱。可以将 github 账号主邮箱改为 Gmail 邮箱。

但是根据群友反应,将 github 账号主邮箱切换为 Gmail 以后,Vercel 又会提示需要使用手机号码验证。然而 github 并没有提供手机号码绑定的内容。

综上,建议一开始注册 github 账号时就使用 Gmail 等国外邮箱进行注册。

  1. 国内访问Gmail的方案:
    • 直接使用 QQ 邮箱手机版,它提供 Gmail 的访问路线,可以直接注册并使用。
    • 使用 Ghelper 等浏览器插件访问。详情可以参考这篇文章:玩转 Microsoft-Edge
  1. 若是执着于当前Github账号,可以参考以下方案进行尝试:
    • 完成了 Gmail 等国外邮箱的注册,打开 github-> 头像 ->settings->Emails->Add email address, 并完成邮箱验证。
    • 在Add email address 下方的Primary email address 选项中将 Gmail 设置为主邮箱。

②新建项目,fork我的项目

打开dashboard点击新建项目的New Project按钮。点击导入第三方库。

image.png

填入俺提供的自建 API 项目地址:

https://github.com/Zfour/friends_link_list_api

image.png

选择私有账户。点击select

image.png

选择github按钮然后会帮你将仓库克隆到你的github中,填入自定义仓库名称。

image.png

之后会识别出项目文件,单击 Continue

image.png

VercelPROJECT NAME 可以自定义,不用太过在意,但是之后不支持修改,若要改名,只能删除 PROJECT 以后重建一个了。下方三个选项保持默认就好。

image.png

此时点击Deploy,Vercel 的api部署已经完成。

④检查API是否配置成功

访问API链接(图中链接+'/api'+查询参数),如我的为

https://python-github-calendar-api-zfour.vercel.app/api/?zfour

如果显示数据则说明API配置成功。

python_github_calendar_api's People

Contributors

shanmuyunqiu avatar zfour avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python_github_calendar_api's Issues

公用API失效了

githubcalendar.js:58
GET https://python-github-calendar-api.vercel.app/api?USER net::ERR_CONNECTION_CLOSED
github_canlendar @ githubcalendar.js:58
(匿名) @ githubcalendar.js:312
(匿名) @ githubcalendar.js:313
githubcalendar.js:81 TypeError: Failed to fetch
at github_canlendar (githubcalendar.js:58:5)
at githubcalendar.js:312:5
at githubcalendar.js:313:3

Vercel自建api,请求报错,下标越界了

File "./api/index.py", line 32, in do_GET
data = getdata(user)
File "./api/index.py", line 20, in getdata
itemlist = {"date": item, "count": datacount[index]}
IndexError: list index out of range

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.