热门话题
(self)
| 88 | return (items, resp) |
| 89 | |
| 90 | def get_trending_developer(self): |
| 91 | """热门话题 |
| 92 | """ |
| 93 | items = [] |
| 94 | resp = None |
| 95 | try: |
| 96 | with request_session() as s: |
| 97 | resp = s.get(TRENDING_DEVELOPER_URL) |
| 98 | soup = BeautifulSoup(resp.text) |
| 99 | except: |
| 100 | logger.exception('get trending developer failed') |
| 101 | |
| 102 | return (items, resp) |
| 103 | |
| 104 | |
| 105 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected