获取全部 300 条的数据 https://developer.github.com/v3/activity/events/ GitHub 规定:默认每页 30 条,最多 300 条目
()
| 88 | |
| 89 | |
| 90 | def get_all_data(): |
| 91 | """ |
| 92 | 获取全部 300 条的数据 |
| 93 | https://developer.github.com/v3/activity/events/ |
| 94 | GitHub 规定:默认每页 30 条,最多 300 条目 |
| 95 | """ |
| 96 | all_data_list = [] |
| 97 | for i in range(10): |
| 98 | response_json = get_data(i+1) |
| 99 | if response_json: |
| 100 | all_data_list.extend(response_json) |
| 101 | return all_data_list |
| 102 | |
| 103 | |
| 104 | def check_condition(data): |
no test coverage detected