MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / match_interact_info_count

Function match_interact_info_count

tools/crawler_util.py:177–186  ·  view source on GitHub ↗
(count_str: str)

Source from the content-addressed store, hash-verified

175
176
177def 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
189def format_proxy_info(ip_proxy_info) -> Tuple[Optional[Dict], Optional[str]]:

Callers

nothing calls this directly

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected