github项目检测

作者: Aedda | 来源:发表于2019-04-04 18:16 被阅读2次
import requests
import webbrowser
import time

api = 'api链接'
web_page = "项目地址"
last_update = None
all_info = requests.get(api).json()
cur_update = all_info['updated_at']
print(cur_update)

while True:
    if not last_update:
        last_update = cur_update

    if last_update < cur_update:
        webbrowser.open(web_page)
        time.sleep(600)

相关文章

网友评论

    本文标题:github项目检测

    本文链接:https://www.haomeiwen.com/subject/hybqiqtx.html