{"id":44597,"date":"2025-06-19T19:15:40","date_gmt":"2025-06-19T11:15:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/44597.html"},"modified":"2025-06-19T19:15:40","modified_gmt":"2025-06-19T11:15:40","slug":"%e7%a0%b4%e8%a7%a3-url-%e6%8a%93%e5%8f%96%e9%9a%be%e9%a2%98%ef%bc%9amcp-fetch-%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%a0%b8%e5%bf%83%e6%8a%80%e6%9c%af%e5%85%a8%e8%a7%a3%e6%9e%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/44597.html","title":{"rendered":"\u7834\u89e3 URL \u6293\u53d6\u96be\u9898\uff1aMCP Fetch \u670d\u52a1\u5668\u6838\u5fc3\u6280\u672f\u5168\u89e3\u6790"},"content":{"rendered":"<p>\u5728 AI \u5de5\u5177\u5f00\u53d1\u4e2d&#xff0c;\u6211\u4eec\u5e38\u5e38\u9762\u4e34\u8fd9\u6837\u7684\u56f0\u5883&#xff1a;\u5f53\u9700\u8981\u8c03\u7528\u5916\u90e8\u8d44\u6e90\u65f6&#xff0c;\u4e0d\u540c\u6846\u67b6\u7684\u534f\u8bae\u5dee\u5f02\u5bfc\u81f4\u91cd\u590d\u5f00\u53d1&#xff0c;\u800c\u624b\u52a8\u5904\u7406 URL \u6293\u53d6\u53c8\u5bb9\u6613\u9677\u5165\u5185\u5bb9\u622a\u65ad\u3001\u683c\u5f0f\u8f6c\u6362\u3001robots.txt \u9650\u5236\u7b49\u9677\u9631\u3002\u4eca\u5929&#xff0c;\u6211\u4eec\u5c06\u7ed3\u5408 MCP&#xff08;Model Context Protocol&#xff09;\u534f\u8bae\u7684\u6807\u51c6\u5316\u80fd\u529b&#xff0c;\u6df1\u5165\u5256\u6790\u5982\u4f55\u6784\u5efa\u4e00\u4e2a\u9ad8\u6548\u3001\u5408\u89c4\u7684 Fetch \u670d\u52a1\u5668&#xff0c;\u5f7b\u5e95\u89e3\u51b3\u8fd9\u4e9b\u75db\u70b9\u3002\u672c\u6587\u7279\u522b\u589e\u52a0 30% \u6838\u5fc3\u4ee3\u7801\u7ec6\u8282&#xff0c;\u5e26\u4f60\u770b\u61c2\u6bcf\u4e2a\u6280\u672f\u70b9\u7684\u5b9e\u73b0\u903b\u8f91\u3002<\/p>\n<h3>\u4e00\u3001MCP \u534f\u8bae&#xff1a;AI \u5de5\u5177\u7684 &#034;\u901a\u7528\u63d2\u5ea7&#034;<\/h3>\n<h4>1. \u6838\u5fc3\u53c2\u6570\u6a21\u578b&#xff1a;Fetch \u7c7b\u7684\u5b8c\u6574\u5b9e\u73b0<\/h4>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>from pydantic import BaseModel, Field, AnyUrl<br \/>\nfrom typing import Annotated<\/p>\n<p>class Fetch(BaseModel):<br \/>\n    &#034;&#034;&#034;URL\u83b7\u53d6\u53c2\u6570\u6a21\u578b&#xff08;\u5e26\u5b8c\u6574\u9a8c\u8bc1\u903b\u8f91&#xff09;&#034;&#034;&#034;<br \/>\n    url: Annotated[<br \/>\n        AnyUrl,<br \/>\n        Field(<br \/>\n            description&#061;&#034;\u5fc5\u586b\u53c2\u6570&#xff0c;\u76ee\u6807URL\u5730\u5740&#xff08;\u9700\u5305\u542b\u534f\u8bae\u5934&#xff0c;\u5982https:\/\/&#xff09;&#034;,<br \/>\n            examples&#061;[&#034;https:\/\/developer.mozilla.org\/en-US\/&#034;]  # \u793a\u4f8b\u8f93\u5165<br \/>\n        )<br \/>\n    ]<br \/>\n    max_length: Annotated[<br \/>\n        int,<br \/>\n        Field(<br \/>\n            default&#061;5000,<br \/>\n            ge&#061;1,  # \u6700\u5c0f1\u5b57\u7b26<br \/>\n            le&#061;1000000,  # \u6700\u5927100\u4e07\u5b57\u7b26<br \/>\n            description&#061;&#034;\u8fd4\u56de\u5185\u5bb9\u7684\u6700\u5927\u5b57\u7b26\u6570&#xff0c;\u9632\u6b62\u5185\u5b58\u6ea2\u51fa&#xff08;\u9ed8\u8ba45000&#xff09;&#034;<br \/>\n        )<br \/>\n    ]<br \/>\n    start_index: Annotated[<br \/>\n        int,<br \/>\n        Field(<br \/>\n            default&#061;0,<br \/>\n            ge&#061;0,  # \u8d77\u59cb\u7d22\u5f15\u4e0d\u80fd\u4e3a\u8d1f<br \/>\n            description&#061;&#034;\u5206\u9875\u83b7\u53d6\u7684\u8d77\u59cb\u5b57\u7b26\u7d22\u5f15&#xff08;\u9ed8\u8ba4\u4ece0\u5f00\u59cb&#xff09;&#034;<br \/>\n        )<br \/>\n    ]<br \/>\n    raw: Annotated[<br \/>\n        bool,<br \/>\n        Field(<br \/>\n            default&#061;False,<br \/>\n            description&#061;&#034;\u662f\u5426\u8fd4\u56de\u539f\u59cbHTML&#xff08;\u9ed8\u8ba4\u8f6c\u6362\u4e3aMarkdown&#xff09;&#034;<br \/>\n        )<br \/>\n    ]<\/p>\n<p>    # \u81ea\u5b9a\u4e49\u9a8c\u8bc1&#xff1a;\u68c0\u67e5URL\u662f\u5426\u4e3a\u53ef\u8bbf\u95ee\u7684HTTP\/HTTPS\u5730\u5740<br \/>\n    &#064;validator(&#034;url&#034;)<br \/>\n    def validate_url_scheme(cls, value):<br \/>\n        scheme &#061; urlparse(value).scheme<br \/>\n        if scheme not in [&#034;http&#034;, &#034;https&#034;]:<br \/>\n            raise ValueError(&#034;URL\u5fc5\u987b\u4f7f\u7528http\u6216https\u534f\u8bae&#034;)<br \/>\n        return value<\/p>\n<p>\u5173\u952e\u7ec6\u8282\u89e3\u6790&#xff1a;<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528 Pydantic \u7684AnyUrl\u7c7b\u578b\u81ea\u52a8\u9a8c\u8bc1 URL \u683c\u5f0f&#xff0c;\u5305\u542b\u534f\u8bae\u5934\u6821\u9a8c<\/li>\n<li>max_length\u901a\u8fc7ge\u548cle\u53c2\u6570\u9650\u5b9a\u5408\u6cd5\u8303\u56f4&#xff0c;\u9632\u6b62\u6076\u610f\u8d85\u5927\u5185\u5bb9\u8bf7\u6c42<\/li>\n<li>\u65b0\u589evalidate_url_scheme\u81ea\u5b9a\u4e49\u9a8c\u8bc1\u5668&#xff0c;\u786e\u4fdd\u53ea\u5904\u7406 HTTP\/HTTPS \u534f\u8bae<\/li>\n<\/ul>\n<h4>2. \u5f02\u6b65\u6293\u53d6\u5f15\u64ce&#xff1a;fetch_url \u5168\u6d41\u7a0b\u4ee3\u7801<\/h4>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>from httpx import AsyncClient, HTTPError<br \/>\nfrom typing import Tuple<br \/>\nfrom mcp.shared.exceptions import McpError<br \/>\nfrom .utils import extract_content_from_html  # \u5047\u8bbeutils\u6a21\u5757\u5b58\u653e\u8f85\u52a9\u51fd\u6570<\/p>\n<p>async def fetch_url(<br \/>\n    url: str,<br \/>\n    user_agent: str,<br \/>\n    force_raw: bool &#061; False,<br \/>\n    proxy_url: str | None &#061; None<br \/>\n) -&gt; Tuple[str, str]:<br \/>\n    &#034;&#034;&#034;\u6838\u5fc3\u6293\u53d6\u51fd\u6570&#xff08;\u5e26\u5b8c\u6574\u9519\u8bef\u5904\u7406&#xff09;&#034;&#034;&#034;<br \/>\n    async with AsyncClient(<br \/>\n        proxies&#061;proxy_url,  # \u652f\u6301\u4ee3\u7406\u670d\u52a1\u5668\u914d\u7f6e<br \/>\n        follow_redirects&#061;True,  # \u81ea\u52a8\u5904\u7406\u6700\u591a5\u6b21\u91cd\u5b9a\u5411&#xff08;\u9ed8\u8ba4\u914d\u7f6e&#xff09;<br \/>\n        timeout&#061;30  # 30\u79d2\u8d85\u65f6\u63a7\u5236<br \/>\n    ) as client:<br \/>\n        try:<br \/>\n            response &#061; await client.get(<br \/>\n                url,<br \/>\n                headers&#061;{&#034;User-Agent&#034;: user_agent}  # \u643a\u5e26\u81ea\u5b9a\u4e49UA<br \/>\n            )<br \/>\n        except HTTPError as e:<br \/>\n            # \u533a\u5206\u4e0d\u540c\u7c7b\u578b\u7684\u7f51\u7edc\u9519\u8bef<br \/>\n            if isinstance(e, TimeoutException):<br \/>\n                raise McpError(&#034;\u8bf7\u6c42\u8d85\u65f6&#xff0c;\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5&#034;)<br \/>\n            elif isinstance(e, ConnectError):<br \/>\n                raise McpError(&#034;\u65e0\u6cd5\u8fde\u63a5\u5230\u76ee\u6807\u670d\u52a1\u5668&#034;)<br \/>\n            else:<br \/>\n                raise McpError(f&#034;\u7f51\u7edc\u9519\u8bef&#xff1a;{str(e)}&#034;)<\/p>\n<p>    # \u5904\u7406HTTP\u72b6\u6001\u7801<br \/>\n    if 400 &lt;&#061; response.status_code &lt; 500:<br \/>\n        raise McpError(f&#034;\u5ba2\u6237\u7aef\u9519\u8bef&#xff1a;\u72b6\u6001\u7801{response.status_code}&#034;)<br \/>\n    elif response.status_code &gt;&#061; 500:<br \/>\n        raise McpError(f&#034;\u670d\u52a1\u5668\u9519\u8bef&#xff1a;\u72b6\u6001\u7801{response.status_code}&#034;)<\/p>\n<p>    # \u667a\u80fd\u5224\u65ad\u5185\u5bb9\u7c7b\u578b<br \/>\n    page_raw &#061; response.text<br \/>\n    content_type &#061; response.headers.get(&#034;content-type&#034;, &#034;&#034;).lower()<br \/>\n    is_html &#061; (<br \/>\n        &#034;text\/html&#034; in content_type<br \/>\n        or (not content_type and &#034;&lt;html&#034; in page_raw[:100])  # \u5904\u7406\u7f3a\u5931content-type\u7684\u60c5\u51b5<br \/>\n    )<\/p>\n<p>    # \u683c\u5f0f\u8f6c\u6362\u903b\u8f91<br \/>\n    if is_html and not force_raw:<br \/>\n        # \u8c03\u7528\u5185\u5bb9\u63d0\u53d6\u51fd\u6570&#xff08;\u89c1\u4e0b\u6587\u8be6\u7ec6\u5b9e\u73b0&#xff09;<br \/>\n        return extract_content_from_html(page_raw), &#034;&#034;<br \/>\n    else:<br \/>\n        return (<br \/>\n            page_raw,<br \/>\n            f&#034;[\u539f\u59cb\u5185\u5bb9] \u5185\u5bb9\u7c7b\u578b:{content_type}&#xff0c;\u4ee5\u4e0b\u662f\u539f\u59cb\u6570\u636e&#xff1a;\\\\n&#034;<br \/>\n        )<\/p>\n<p>\u6280\u672f\u4eae\u70b9&#xff1a;<\/p>\n<\/p>\n<ul>\n<li>\u7ec6\u5316\u7f51\u7edc\u9519\u8bef\u7c7b\u578b&#xff0c;\u63d0\u4f9b\u66f4\u7cbe\u51c6\u7684\u95ee\u9898\u5b9a\u4f4d\u4fe1\u606f<\/li>\n<li>\u5904\u7406\u7f3a\u5931content-type\u7684\u8fb9\u7f18\u60c5\u51b5&#xff0c;\u901a\u8fc7\u6587\u672c\u7279\u5f81\u5224\u65ad HTML<\/li>\n<li>\u660e\u786e\u533a\u5206\u539f\u59cb\u5185\u5bb9\u548c Markdown \u8f6c\u6362\u7684\u8fd4\u56de\u683c\u5f0f<\/li>\n<\/ul>\n<h3>\u4e8c\u3001\u5408\u89c4\u6027\u8bbe\u8ba1&#xff1a;\u4ece robots.txt \u5230\u5185\u5bb9\u5b89\u5168<\/h3>\n<h4>1. robots.txt \u68c0\u67e5\u7684\u5b8c\u6574\u5b9e\u73b0<\/h4>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>from protego import Protego<br \/>\nfrom urllib.parse import urlparse, urlunparse<\/p>\n<p>async def check_may_autonomously_fetch_url(<br \/>\n    url: str,<br \/>\n    user_agent: str,<br \/>\n    proxy_url: str | None &#061; None<br \/>\n) -&gt; None:<br \/>\n    &#034;&#034;&#034;robots.txt\u5408\u89c4\u6027\u68c0\u67e5&#xff08;\u5e26\u89e3\u6790\u7ec6\u8282&#xff09;&#034;&#034;&#034;<br \/>\n    # 1. \u751f\u6210robots.txt\u5730\u5740<br \/>\n    robots_url &#061; get_robots_txt_url(url)  # \u89c1\u4e0b\u65b9\u5de5\u5177\u51fd\u6570<\/p>\n<p>    # 2. \u83b7\u53d6\u5e76\u89e3\u6790robots.txt\u5185\u5bb9<br \/>\n    async with AsyncClient(proxies&#061;proxy_url) as client:<br \/>\n        try:<br \/>\n            robots_response &#061; await client.get(robots_url, headers&#061;{&#034;User-Agent&#034;: user_agent})<br \/>\n        except Exception as e:<br \/>\n            raise McpError(f&#034;\u65e0\u6cd5\u83b7\u53d6robots.txt&#xff1a;{str(e)}&#034;)<\/p>\n<p>    # 3. \u6e05\u6d17\u89c4\u5219&#xff08;\u53bb\u9664\u6ce8\u91ca\u548c\u7a7a\u884c&#xff09;<br \/>\n    raw_rules &#061; [<br \/>\n        line.strip() for line in robots_response.text.splitlines()<br \/>\n        if line.strip() and not line.strip().startswith(&#034;#&#034;)  # \u53bb\u9664\u6ce8\u91ca<br \/>\n    ]<br \/>\n    robot_parser &#061; Protego.parse(&#034;\\\\n&#034;.join(raw_rules))  # \u751f\u6210\u89c4\u5219\u89e3\u6790\u5668<\/p>\n<p>    # 4. \u6838\u5fc3\u68c0\u67e5\u903b\u8f91<br \/>\n    if not robot_parser.can_fetch(url, user_agent):<br \/>\n        raise McpError(<br \/>\n            f&#034;\u76ee\u6807\u7f51\u7ad9\u7981\u6b62\u6293\u53d6&#xff1a;\\\\n&#034;<br \/>\n            f&#034;\u2022 URL: {url}\\\\n&#034;<br \/>\n            f&#034;\u2022 robots.txt: {robots_url}\\\\n&#034;<br \/>\n            f&#034;\u2022 \u7981\u7528\u89c4\u5219: {robot_parser.get_disallow_rules(url, user_agent)}&#034;  # \u663e\u793a\u5177\u4f53\u7981\u7528\u89c4\u5219<br \/>\n        )<\/p>\n<p>def get_robots_txt_url(url: str) -&gt; str:<br \/>\n    &#034;&#034;&#034;\u751f\u6210\u6807\u51c6robots.txt\u5730\u5740&#xff08;\u5e26\u534f\u8bae\u548c\u57df\u540d\u4fdd\u7559&#xff09;&#034;&#034;&#034;<br \/>\n    parsed &#061; urlparse(url)<br \/>\n    return urlunparse((<br \/>\n        parsed.scheme,  # \u4fdd\u7559\u539f\u534f\u8bae&#xff08;http\/https&#xff09;<br \/>\n        parsed.netloc,  # \u4fdd\u7559\u57df\u540d<br \/>\n        &#034;\/robots.txt&#034;,  # \u56fa\u5b9a\u8def\u5f84<br \/>\n        &#034;&#034;, &#034;&#034;, &#034;&#034;  # \u6e05\u7a7a\u8def\u5f84\u3001\u53c2\u6570\u3001\u951a\u70b9<br \/>\n    ))<\/p>\n<p>\u5173\u952e\u903b\u8f91&#xff1a;<\/p>\n<\/p>\n<ul>\n<li>\u5148\u6e05\u6d17 robots.txt \u5185\u5bb9&#xff0c;\u53bb\u9664\u6ce8\u91ca\u884c\u4ee5\u786e\u4fdd\u89c4\u5219\u6709\u6548\u6027<\/li>\n<li>\u4f7f\u7528 Protego \u5e93\u7684can_fetch\u65b9\u6cd5\u8fdb\u884c\u7cbe\u786e\u5339\u914d&#xff0c;\u652f\u6301\u901a\u914d\u7b26\u89c4\u5219<\/li>\n<li>\u9519\u8bef\u4fe1\u606f\u5305\u542b\u5177\u4f53\u7981\u7528\u89c4\u5219&#xff0c;\u65b9\u4fbf\u5f00\u53d1\u8005\u6392\u67e5\u95ee\u9898<\/li>\n<\/ul>\n<h3>\u4e09\u3001\u5185\u5bb9\u5904\u7406&#xff1a;\u4ece HTML \u5230 Markdown \u7684\u8715\u53d8<\/h3>\n<h4>1. \u667a\u80fd\u5185\u5bb9\u63d0\u53d6\u51fd\u6570<\/h4>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>import markdownify<br \/>\nimport readabilipy.simple_json<\/p>\n<p>def extract_content_from_html(html: str) -&gt; str:<br \/>\n    &#034;&#034;&#034;HTML\u51c0\u5316&#043;Markdown\u8f6c\u6362&#xff08;\u5e26\u964d\u566a\u903b\u8f91&#xff09;&#034;&#034;&#034;<br \/>\n    # 1. \u63d0\u53d6\u6838\u5fc3\u5185\u5bb9&#xff08;\u53bb\u9664\u5e7f\u544a\/\u5bfc\u822a&#xff09;<br \/>\n    try:<br \/>\n        content_data &#061; readabilipy.simple_json.simple_json_from_html_string(<br \/>\n            html,<br \/>\n            use_readability&#061;True  # \u542f\u7528Readability\u7b97\u6cd5\u63d0\u53d6\u4e3b\u5185\u5bb9<br \/>\n        )<br \/>\n    except Exception as e:<br \/>\n        return f&#034;&lt;\u9519\u8bef&gt; \u5185\u5bb9\u63d0\u53d6\u5931\u8d25&#xff1a;{str(e)}&#034;<\/p>\n<p>    if not content_data.get(&#034;content&#034;):<br \/>\n        return &#034;&lt;\u9519\u8bef&gt; \u672a\u68c0\u6d4b\u5230\u6709\u6548\u5185\u5bb9&#034;<\/p>\n<p>    # 2. \u8f6c\u6362\u4e3aMarkdown&#xff08;\u5e26\u6807\u9898\u683c\u5f0f\u4f18\u5316&#xff09;<br \/>\n    return markdownify.markdownify(<br \/>\n        content_data[&#034;content&#034;],<br \/>\n        heading_style&#061;markdownify.ATX,  # \u4f7f\u7528#\u53f7\u4f5c\u4e3a\u6807\u9898\u6807\u8bb0&#xff08;\u5982# \u4e00\u7ea7\u6807\u9898&#xff09;<br \/>\n        linkify&#061;False,  # \u4e0d\u81ea\u52a8\u8f6c\u6362\u94fe\u63a5&#xff08;\u4fdd\u6301\u539f\u59cb\u683c\u5f0f&#xff09;<br \/>\n        bold_tags&#061;[&#034;strong&#034;, &#034;b&#034;],  # \u81ea\u5b9a\u4e49\u52a0\u7c97\u6807\u7b7e<br \/>\n        italic_tags&#061;[&#034;em&#034;, &#034;i&#034;]  # \u81ea\u5b9a\u4e49\u659c\u4f53\u6807\u7b7e<br \/>\n    )<\/p>\n<p>\u6280\u672f\u7ec6\u8282&#xff1a;<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528 Readability \u7b97\u6cd5\u7cbe\u51c6\u63d0\u53d6\u4e3b\u5185\u5bb9&#xff0c;\u51c6\u786e\u7387\u8fbe 92%<\/li>\n<li>\u652f\u6301\u81ea\u5b9a\u4e49\u6807\u7b7e\u6620\u5c04&#xff0c;\u9002\u914d\u4e0d\u540c HTML \u7ed3\u6784<\/li>\n<li>\u5173\u95ed\u81ea\u52a8\u94fe\u63a5\u8f6c\u6362&#xff0c;\u907f\u514d\u7834\u574f\u539f\u6709\u5185\u5bb9\u683c\u5f0f<\/li>\n<\/ul>\n<h3>\u56db\u3001\u670d\u52a1\u5668\u4e3b\u903b\u8f91&#xff1a;\u4ece\u5de5\u5177\u6ce8\u518c\u5230\u8bf7\u6c42\u5904\u7406<\/h3>\n<h4>1. serve \u51fd\u6570\u6838\u5fc3\u90e8\u5206&#xff08;\u5de5\u5177\u6ce8\u518c&#xff09;<\/h4>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>from mcp.server import Server<br \/>\nfrom mcp.types import Tool, TextContent<\/p>\n<p>async def serve(&#8230;):<br \/>\n    server &#061; Server(&#034;mcp-fetch&#034;)<\/p>\n<p>    # \u6ce8\u518c\u5de5\u5177API<br \/>\n    &#064;server.call_tool()<br \/>\n    async def call_tool(name, arguments):<br \/>\n        try:<br \/>\n            # \u53c2\u6570\u9a8c\u8bc1&#xff08;\u4f7f\u7528Fetch\u7c7b\u81ea\u52a8\u6821\u9a8c&#xff09;<br \/>\n            args &#061; Fetch(**arguments)<br \/>\n        except ValidationError as e:<br \/>\n            # \u8f6c\u6362\u4e3a\u53cb\u597d\u7684\u9519\u8bef\u4fe1\u606f<br \/>\n            return [TextContent(<br \/>\n                type&#061;&#034;text&#034;,<br \/>\n                text&#061;f&#034;\u53c2\u6570\u9519\u8bef&#xff1a;{e.errors()[0][&#039;msg&#039;]}&#034;<br \/>\n            )]<\/p>\n<p>        # robots.txt\u68c0\u67e5&#xff08;\u4ec5\u81ea\u52a8\u6a21\u5f0f&#xff09;<br \/>\n        if not ignore_robots_txt:<br \/>\n            await check_may_autonomously_fetch_url(args.url, user_agent_autonomous)<\/p>\n<p>        # \u6267\u884c\u6293\u53d6<br \/>\n        content, prefix &#061; await fetch_url(<br \/>\n            args.url,<br \/>\n            user_agent_autonomous,<br \/>\n            force_raw&#061;args.raw,<br \/>\n            proxy_url&#061;proxy_url<br \/>\n        )<\/p>\n<p>        # \u5206\u9875\u5904\u7406&#xff08;\u5173\u952e\u903b\u8f91&#xff09;<br \/>\n        original_length &#061; len(content)<br \/>\n        end_index &#061; args.start_index &#043; args.max_length<br \/>\n        if args.start_index &gt;&#061; original_length:<br \/>\n            content &#061; &#034;&lt;\u63d0\u793a&gt; \u5df2\u5230\u8fbe\u5185\u5bb9\u672b\u5c3e&#xff0c;\u6ca1\u6709\u66f4\u591a\u6570\u636e&#034;<br \/>\n        else:<br \/>\n            # \u5207\u7247\u64cd\u4f5c\u5e76\u6dfb\u52a0\u622a\u65ad\u63d0\u793a<br \/>\n            content &#061; content[args.start_index:end_index]<br \/>\n            if end_index &lt; original_length:<br \/>\n                content &#043;&#061; f&#034;\\\\n\\\\n&lt;\u63d0\u793a&gt; \u5185\u5bb9\u88ab\u622a\u65ad&#xff0c;\u5269\u4f59{original_length &#8211; end_index}\u5b57\u7b26&#xff0c;\u53ef\u901a\u8fc7start_index&#061;{end_index}\u7ee7\u7eed\u83b7\u53d6&#034;<\/p>\n<p>        return [TextContent(type&#061;&#034;text&#034;, text&#061;f&#034;{prefix}{args.url} \u7684\u5185\u5bb9&#xff1a;\\\\n{content}&#034;)]<\/p>\n<p>\u5173\u952e\u6d41\u7a0b&#xff1a;<\/p>\n<\/p>\n<ul>\n<li>\u53c2\u6570\u6821\u9a8c\u4e0e\u9519\u8bef\u4fe1\u606f\u53cb\u597d\u5316\u5904\u7406<\/li>\n<li>\u5206\u9875\u903b\u8f91\u901a\u8fc7\u5207\u7247\u5b9e\u73b0&#xff0c;\u652f\u6301\u767e\u4e07\u7ea7\u5b57\u7b26\u7684\u5206\u6bb5\u83b7\u53d6<\/li>\n<li>\u81ea\u52a8\u6dfb\u52a0\u622a\u65ad\u63d0\u793a&#xff0c;\u5f15\u5bfc\u5ba2\u6237\u7aef\u7eed\u4f20<\/li>\n<\/ul>\n<h3>\u4e94\u3001\u6700\u4f73\u5b9e\u8df5&#xff1a;\u4ee3\u7801\u4f18\u5316\u6280\u5de7<\/h3>\n<h4>1. \u4ee3\u7406\u6c60\u96c6\u6210\u793a\u4f8b&#xff08;\u53ef\u76f4\u63a5\u590d\u7528&#xff09;<\/h4>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p># \u4ee3\u7406\u6c60\u6a21\u5757&#xff08;\u4f2a\u4ee3\u7801&#xff0c;\u5b9e\u9645\u9700\u5b9e\u73b0\u6709\u6548\u6027\u68c0\u6d4b&#xff09;<br \/>\nproxy_pool &#061; [<br \/>\n    &#034;http:\/\/proxy1.example.com:8080&#034;,<br \/>\n    &#034;http:\/\/proxy2.example.com:8080&#034;,<br \/>\n    # \u66f4\u591a\u4ee3\u7406\u5730\u5740<br \/>\n]<\/p>\n<p>async def get_random_proxy():<br \/>\n    &#034;&#034;&#034;\u4ece\u4ee3\u7406\u6c60\u4e2d\u83b7\u53d6\u6709\u6548\u4ee3\u7406&#xff08;\u5e26\u7b80\u5355\u8d1f\u8f7d\u5747\u8861&#xff09;&#034;&#034;&#034;<br \/>\n    return random.choice(proxy_pool)<\/p>\n<p># \u4f7f\u7528\u65f6\u53ea\u9700&#xff1a;<br \/>\nproxy_url &#061; await get_random_proxy()<br \/>\ncontent, _ &#061; await fetch_url(url, user_agent, proxy_url&#061;proxy_url)<\/p>\n<h4>2. \u6027\u80fd\u4f18\u5316&#xff1a;\u8fde\u63a5\u6c60\u914d\u7f6e<\/h4>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p># \u5168\u5c40\u8fde\u63a5\u6c60&#xff08;\u51cf\u5c11TCP\u63e1\u624b\u5f00\u9500&#xff09;<br \/>\nclient &#061; AsyncClient(<br \/>\n    proxies&#061;proxy_url,<br \/>\n    follow_redirects&#061;True,<br \/>\n    limits&#061;Limits(max_connections&#061;100, max_keepalive_connections&#061;50)  # \u914d\u7f6e\u8fde\u63a5\u6c60\u53c2\u6570<br \/>\n)<\/p>\n<h3>\u7ed3\u8bed<\/h3>\n<p>\u901a\u8fc7\u5b8c\u6574\u7684\u4ee3\u7801\u5b9e\u73b0&#xff0c;\u6211\u4eec\u770b\u5230 MCP Fetch \u670d\u52a1\u5668\u5982\u4f55\u901a\u8fc7\u53c2\u6570\u6821\u9a8c\u3001\u5f02\u6b65 IO\u3001\u5408\u89c4\u68c0\u67e5\u3001\u5185\u5bb9\u5904\u7406\u7b49\u6a21\u5757&#xff0c;\u6784\u5efa\u8d77\u5065\u58ee\u7684 URL \u6293\u53d6\u80fd\u529b\u3002\u8fd9\u4e9b\u4ee3\u7801\u7ec6\u8282\u4e0d\u4ec5\u89e3\u51b3\u4e86\u5b9e\u9645\u5f00\u53d1\u4e2d\u7684\u5e38\u89c1\u95ee\u9898&#xff0c;\u66f4\u4f53\u73b0\u4e86\u5de5\u7a0b\u5316\u8bbe\u8ba1\u7684\u6838\u5fc3\u601d\u60f3 \u2014\u2014\u5728\u590d\u6742\u573a\u666f\u4e2d\u5efa\u7acb\u6709\u5e8f\u7684\u89c4\u5219\u4f53\u7cfb\u3002<\/p>\n<\/p>\n<p>\u5982\u679c\u4f60\u5728\u5f00\u53d1\u4e2d\u9700\u8981\u5904\u7406\u7f51\u7edc\u5185\u5bb9\u83b7\u53d6&#xff0c;\u4e0d\u59a8\u76f4\u63a5\u590d\u7528\u6587\u4e2d\u7684\u53c2\u6570\u6a21\u578b\u548c\u6838\u5fc3\u51fd\u6570&#xff0c;\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8c03\u6574\u4ee3\u7406\u914d\u7f6e\u548c\u5185\u5bb9\u8f6c\u6362\u903b\u8f91\u3002\u8bb0\u5f97\u70b9\u8d5e\u6536\u85cf&#xff0c;\u5173\u6ce8\u6211\u83b7\u53d6\u66f4\u591a AI \u5de5\u5177\u5f00\u53d1\u7684\u786c\u6838\u6280\u672f\u89e3\u6790&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb626\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u901a\u8fc7\u5b8c\u6574\u7684\u4ee3\u7801\u5b9e\u73b0\uff0c\u6211\u4eec\u770b\u5230 MCP Fetch \u670d\u52a1\u5668\u5982\u4f55\u901a\u8fc7\u53c2\u6570\u6821\u9a8c\u3001\u5f02\u6b65 IO\u3001\u5408\u89c4\u68c0\u67e5\u3001\u5185\u5bb9\u5904\u7406\u7b49\u6a21\u5757\uff0c\u6784\u5efa\u8d77\u5065\u58ee\u7684 URL \u6293\u53d6\u80fd\u529b\u3002\u8fd9\u4e9b\u4ee3\u7801\u7ec6\u8282\u4e0d\u4ec5\u89e3\u51b3\u4e86\u5b9e\u9645\u5f00\u53d1\u4e2d\u7684\u5e38\u89c1\u95ee\u9898\uff0c\u66f4\u4f53\u73b0\u4e86\u5de5\u7a0b\u5316\u8bbe\u8ba1\u7684\u6838\u5fc3\u601d\u60f3 \u2014\u2014\u5728\u590d\u6742\u573a\u666f\u4e2d\u5efa\u7acb\u6709\u5e8f\u7684\u89c4\u5219\u4f53\u7cfb\u3002\u5982\u679c\u4f60\u5728\u5f00\u53d1\u4e2d\u9700\u8981\u5904\u7406\u7f51\u7edc\u5185\u5bb9\u83b7\u53d6\uff0c\u4e0d\u59a8\u76f4\u63a5\u590d\u7528\u6587\u4e2d\u7684\u53c2\u6570\u6a21\u578b\u548c\u6838\u5fc3\u51fd\u6570\uff0c\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8c03\u6574\u4ee3\u7406\u914d\u7f6e\u548c\u5185\u5bb9\u8f6c\u6362\u903b\u8f91\u3002_fetch mcp<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[73,81,2880,43],"topic":[],"class_list":["post-44597","post","type-post","status-publish","format-standard","hentry","category-server","tag-mcp","tag-python","tag-2880","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7834\u89e3 URL \u6293\u53d6\u96be\u9898\uff1aMCP Fetch \u670d\u52a1\u5668\u6838\u5fc3\u6280\u672f\u5168\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/44597.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7834\u89e3 URL \u6293\u53d6\u96be\u9898\uff1aMCP Fetch \u670d\u52a1\u5668\u6838\u5fc3\u6280\u672f\u5168\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb626\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u901a\u8fc7\u5b8c\u6574\u7684\u4ee3\u7801\u5b9e\u73b0\uff0c\u6211\u4eec\u770b\u5230 MCP Fetch \u670d\u52a1\u5668\u5982\u4f55\u901a\u8fc7\u53c2\u6570\u6821\u9a8c\u3001\u5f02\u6b65 IO\u3001\u5408\u89c4\u68c0\u67e5\u3001\u5185\u5bb9\u5904\u7406\u7b49\u6a21\u5757\uff0c\u6784\u5efa\u8d77\u5065\u58ee\u7684 URL \u6293\u53d6\u80fd\u529b\u3002\u8fd9\u4e9b\u4ee3\u7801\u7ec6\u8282\u4e0d\u4ec5\u89e3\u51b3\u4e86\u5b9e\u9645\u5f00\u53d1\u4e2d\u7684\u5e38\u89c1\u95ee\u9898\uff0c\u66f4\u4f53\u73b0\u4e86\u5de5\u7a0b\u5316\u8bbe\u8ba1\u7684\u6838\u5fc3\u601d\u60f3 \u2014\u2014\u5728\u590d\u6742\u573a\u666f\u4e2d\u5efa\u7acb\u6709\u5e8f\u7684\u89c4\u5219\u4f53\u7cfb\u3002\u5982\u679c\u4f60\u5728\u5f00\u53d1\u4e2d\u9700\u8981\u5904\u7406\u7f51\u7edc\u5185\u5bb9\u83b7\u53d6\uff0c\u4e0d\u59a8\u76f4\u63a5\u590d\u7528\u6587\u4e2d\u7684\u53c2\u6570\u6a21\u578b\u548c\u6838\u5fc3\u51fd\u6570\uff0c\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8c03\u6574\u4ee3\u7406\u914d\u7f6e\u548c\u5185\u5bb9\u8f6c\u6362\u903b\u8f91\u3002_fetch mcp\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/44597.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-19T11:15:40+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44597.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/44597.html\",\"name\":\"\u7834\u89e3 URL \u6293\u53d6\u96be\u9898\uff1aMCP Fetch \u670d\u52a1\u5668\u6838\u5fc3\u6280\u672f\u5168\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-19T11:15:40+00:00\",\"dateModified\":\"2025-06-19T11:15:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/44597.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/44597.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44597.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7834\u89e3 URL \u6293\u53d6\u96be\u9898\uff1aMCP Fetch \u670d\u52a1\u5668\u6838\u5fc3\u6280\u672f\u5168\u89e3\u6790\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7834\u89e3 URL \u6293\u53d6\u96be\u9898\uff1aMCP Fetch \u670d\u52a1\u5668\u6838\u5fc3\u6280\u672f\u5168\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/44597.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7834\u89e3 URL \u6293\u53d6\u96be\u9898\uff1aMCP Fetch \u670d\u52a1\u5668\u6838\u5fc3\u6280\u672f\u5168\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb626\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u901a\u8fc7\u5b8c\u6574\u7684\u4ee3\u7801\u5b9e\u73b0\uff0c\u6211\u4eec\u770b\u5230 MCP Fetch \u670d\u52a1\u5668\u5982\u4f55\u901a\u8fc7\u53c2\u6570\u6821\u9a8c\u3001\u5f02\u6b65 IO\u3001\u5408\u89c4\u68c0\u67e5\u3001\u5185\u5bb9\u5904\u7406\u7b49\u6a21\u5757\uff0c\u6784\u5efa\u8d77\u5065\u58ee\u7684 URL \u6293\u53d6\u80fd\u529b\u3002\u8fd9\u4e9b\u4ee3\u7801\u7ec6\u8282\u4e0d\u4ec5\u89e3\u51b3\u4e86\u5b9e\u9645\u5f00\u53d1\u4e2d\u7684\u5e38\u89c1\u95ee\u9898\uff0c\u66f4\u4f53\u73b0\u4e86\u5de5\u7a0b\u5316\u8bbe\u8ba1\u7684\u6838\u5fc3\u601d\u60f3 \u2014\u2014\u5728\u590d\u6742\u573a\u666f\u4e2d\u5efa\u7acb\u6709\u5e8f\u7684\u89c4\u5219\u4f53\u7cfb\u3002\u5982\u679c\u4f60\u5728\u5f00\u53d1\u4e2d\u9700\u8981\u5904\u7406\u7f51\u7edc\u5185\u5bb9\u83b7\u53d6\uff0c\u4e0d\u59a8\u76f4\u63a5\u590d\u7528\u6587\u4e2d\u7684\u53c2\u6570\u6a21\u578b\u548c\u6838\u5fc3\u51fd\u6570\uff0c\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8c03\u6574\u4ee3\u7406\u914d\u7f6e\u548c\u5185\u5bb9\u8f6c\u6362\u903b\u8f91\u3002_fetch mcp","og_url":"https:\/\/www.wsisp.com\/helps\/44597.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-19T11:15:40+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/44597.html","url":"https:\/\/www.wsisp.com\/helps\/44597.html","name":"\u7834\u89e3 URL \u6293\u53d6\u96be\u9898\uff1aMCP Fetch \u670d\u52a1\u5668\u6838\u5fc3\u6280\u672f\u5168\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-19T11:15:40+00:00","dateModified":"2025-06-19T11:15:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/44597.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/44597.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/44597.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7834\u89e3 URL \u6293\u53d6\u96be\u9898\uff1aMCP Fetch \u670d\u52a1\u5668\u6838\u5fc3\u6280\u672f\u5168\u89e3\u6790"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=44597"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44597\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=44597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=44597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=44597"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=44597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}