github项目监测

import requests,webbrowser,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项目监测)