MCPcopy Create free account
hub / github.com/RUC-NLPIR/WebThinker / __init__

Method __init__

scripts/search/bing_search.py:60–67  ·  view source on GitHub ↗

初始化Web解析器客户端 Args: base_url: API服务器的基础URL,默认为本地测试服务器

(self, base_url: str = "http://localhost:8000")

Source from the content-addressed store, hash-verified

58
59class 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 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected