(results: list)
| 71 | |
| 72 | @staticmethod |
| 73 | def parse_results(results: list): |
| 74 | text_list = [] |
| 75 | for result in results: |
| 76 | (feed, value), = result.items() |
| 77 | text = f'## {feed}\n' |
| 78 | for title, link in value.items(): |
| 79 | text += f'- [{title}]({link})\n' |
| 80 | text_list.append(text.strip()) |
| 81 | return text_list |
| 82 | |
| 83 | def send(self, text_list: list): |
| 84 | limiter = Limiter(Rate(20, Duration.MINUTE)) # 频率限制,20条/分钟 |
nothing calls this directly
no outgoing calls
no test coverage detected