初始化Web解析器客户端 Args: base_url: API服务器的基础URL,默认为本地测试服务器
(self, base_url: str = "http://localhost:8000")
| 58 | |
| 59 | class WebParserClient: |
| 60 | def __init__(self, base_url: str = "http://localhost:8000"): |
| 61 | """ |
| 62 | 初始化Web解析器客户端 |
| 63 | |
| 64 | Args: |
| 65 | base_url: API服务器的基础URL,默认为本地测试服务器 |
| 66 | """ |
| 67 | self.base_url = base_url.rstrip('/') |
| 68 | |
| 69 | def parse_urls(self, urls: List[str], timeout: int = 120) -> List[Dict[str, Union[str, bool]]]: |
| 70 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected