()
| 97 | |
| 98 | |
| 99 | def run(): |
| 100 | github = GitHub() |
| 101 | # 今日趋势 |
| 102 | daily, resp = github.get_trending_repository(Since.daily) |
| 103 | # 最近一周趋势 |
| 104 | weekly, resp = github.get_trending_repository(Since.weekly) |
| 105 | # 最近一个月趋势 |
| 106 | monthly, resp = github.get_trending_repository(Since.monthly) |
| 107 | |
| 108 | # 最新数据 |
| 109 | readme = generateReadme(daily, weekly, monthly) |
| 110 | handleReadme(readme) |
| 111 | # 归档 |
| 112 | archiveMd = generateArchiveMd(daily, weekly, monthly) |
| 113 | handleArchiveMd(archiveMd) |
| 114 | |
| 115 | |
| 116 | if __name__ == "__main__": |
no test coverage detected