(self, sec_com, url)
| 40 | return useful_sec_com_list |
| 41 | |
| 42 | async def async_get_shares_details(self, sec_com, url): |
| 43 | async with aiohttp.ClientSession() as session: |
| 44 | async with session.get(url, headers=self.headers) as response: |
| 45 | html = await response.text() |
| 46 | market_value = re.search("<td>总市值:<span>(.*?)亿</span>", html) |
| 47 | if market_value: |
| 48 | return [*sec_com, market_value.groups()[0]] |
| 49 | |
| 50 | async def async_get_all_shares(self): |
| 51 | tasks = [] |
no outgoing calls
no test coverage detected