(count_str: str)
| 175 | |
| 176 | |
| 177 | def match_interact_info_count(count_str: str) -> int: |
| 178 | if not count_str: |
| 179 | return 0 |
| 180 | |
| 181 | match = re.search(r'\d+', count_str) |
| 182 | if match: |
| 183 | number = match.group() |
| 184 | return int(number) |
| 185 | else: |
| 186 | return 0 |
| 187 | |
| 188 | |
| 189 | def format_proxy_info(ip_proxy_info) -> Tuple[Optional[Dict], Optional[str]]: |