{"id":957617,"date":"2024-12-27T03:05:08","date_gmt":"2024-12-26T19:05:08","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/957617.html"},"modified":"2024-12-27T03:05:10","modified_gmt":"2024-12-26T19:05:10","slug":"python%e5%a6%82%e4%bd%95%e5%8c%ba%e5%88%86%e7%9c%9f%e5%81%87%e5%9f%9f%e5%90%8d","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/957617.html","title":{"rendered":"python\u5982\u4f55\u533a\u5206\u771f\u5047\u57df\u540d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100853\/f760a2a9-69bf-4ccf-86af-bfd71c1c7ee9.webp\" alt=\"python\u5982\u4f55\u533a\u5206\u771f\u5047\u57df\u540d\" \/><\/p>\n<p><p> <strong>Python\u533a\u5206\u771f\u5047\u57df\u540d\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\uff1aDNS\u89e3\u6790\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u3001\u7b2c\u4e09\u65b9\u5e93\u68c0\u67e5<\/strong>\u3002\u5176\u4e2d\uff0c<strong>DNS\u89e3\u6790<\/strong>\u662f\u6700\u4e3a\u76f4\u63a5\u548c\u53ef\u9760\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u89e3\u6790\u57df\u540d\u7684IP\u5730\u5740\u6765\u5224\u65ad\u57df\u540d\u7684\u771f\u5b9e\u6027\u3002\u5982\u679c\u4e00\u4e2a\u57df\u540d\u65e0\u6cd5\u89e3\u6790\u6216\u8005\u89e3\u6790\u5230\u4e00\u4e2a\u4e0d\u5408\u7406\u7684IP\u5730\u5740\uff0c\u90a3\u4e48\u5b83\u53ef\u80fd\u662f\u4e00\u4e2a\u5047\u57df\u540d\u3002\u63a5\u4e0b\u6765\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\u6765\u533a\u5206\u771f\u5047\u57df\u540d\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001DNS\u89e3\u6790<\/p>\n<\/p>\n<p><p>DNS\u89e3\u6790\u662f\u9a8c\u8bc1\u57df\u540d\u771f\u5b9e\u6027\u7684\u57fa\u672c\u624b\u6bb5\u3002\u901a\u8fc7DNS\u670d\u52a1\u5668\u89e3\u6790\u57df\u540d\uff0c\u53ef\u4ee5\u83b7\u53d6\u57df\u540d\u5bf9\u5e94\u7684IP\u5730\u5740\u4fe1\u606f\u3002Python\u63d0\u4f9b\u4e86\u591a\u4e2a\u5e93\u53ef\u4ee5\u5b9e\u73b0DNS\u89e3\u6790\uff0c\u5982<code>socket<\/code>\u5e93\u548c<code>dnspython<\/code>\u5e93\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528<code>socket<\/code>\u5e93\u8fdb\u884cDNS\u89e3\u6790\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import socket<\/p>\n<p>def check_dom<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n_via_socket(domain):<\/p>\n<p>    try:<\/p>\n<p>        ip = socket.gethostbyname(domain)<\/p>\n<p>        print(f&quot;The domain {domain} resolves to {ip}&quot;)<\/p>\n<p>        return True<\/p>\n<p>    except socket.gaierror:<\/p>\n<p>        print(f&quot;The domain {domain} could not be resolved&quot;)<\/p>\n<p>        return False<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>check_domain_via_socket(&quot;example.com&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7<code>socket.gethostbyname()<\/code>\u51fd\u6570\u5c1d\u8bd5\u83b7\u53d6\u57df\u540d\u7684IP\u5730\u5740\uff0c\u5982\u679c\u6210\u529f\uff0c\u8bf4\u660e\u57df\u540d\u662f\u771f\u5b9e\u7684\uff0c\u5426\u5219\u53ef\u80fd\u662f\u5047\u7684\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528<code>dnspython<\/code>\u5e93\u8fdb\u884cDNS\u89e3\u6790\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import dns.resolver<\/p>\n<p>def check_domain_via_dnspython(domain):<\/p>\n<p>    try:<\/p>\n<p>        result = dns.resolver.resolve(domain, &#39;A&#39;)<\/p>\n<p>        for ipval in result:<\/p>\n<p>            print(f&quot;The domain {domain} resolves to {ipval.to_text()}&quot;)<\/p>\n<p>        return True<\/p>\n<p>    except dns.resolver.NXDOMAIN:<\/p>\n<p>        print(f&quot;The domain {domain} does not exist&quot;)<\/p>\n<p>        return False<\/p>\n<p>    except Exception as e:<\/p>\n<p>        print(f&quot;An error occurred: {e}&quot;)<\/p>\n<p>        return False<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>check_domain_via_dnspython(&quot;example.com&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>dnspython<\/code>\u5e93\u63d0\u4f9b\u4e86\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u66f4\u8be6\u7ec6\u5730\u5904\u7406\u548c\u89e3\u6790DNS\u8bb0\u5f55\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d<\/p>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u7528\u6765\u5339\u914d\u57df\u540d\u7684\u683c\u5f0f\uff0c\u901a\u8fc7\u68c0\u67e5\u57df\u540d\u662f\u5426\u7b26\u5408\u6807\u51c6\u683c\u5f0f\u6765\u5224\u65ad\u5176\u5408\u6cd5\u6027\u3002\u5408\u6cd5\u7684\u57df\u540d\u901a\u5e38\u7531\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u8fde\u5b57\u7b26\u7ec4\u6210\uff0c\u5e76\u4e14\u9075\u5faa\u4e00\u5b9a\u7684\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def is_valid_domain(domain):<\/p>\n<p>    # Regular expression for validating a domain name<\/p>\n<p>    regex = r&#39;^(?:[a-zA-Z0-9-]{1,63}\\.)+[a-zA-Z]{2,6}$&#39;<\/p>\n<p>    if re.match(regex, domain):<\/p>\n<p>        print(f&quot;The domain {domain} has a valid format&quot;)<\/p>\n<p>        return True<\/p>\n<p>    else:<\/p>\n<p>        print(f&quot;The domain {domain} does not have a valid format&quot;)<\/p>\n<p>        return False<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>is_valid_domain(&quot;example.com&quot;)<\/p>\n<p>is_valid_domain(&quot;invalid_domain&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u6b63\u5219\u8868\u8fbe\u5f0f\u68c0\u67e5\u57df\u540d\u662f\u5426\u7b26\u5408\u6807\u51c6\u7684\u683c\u5f0f\u89c4\u8303\uff0c\u4f46\u6ce8\u610f\u8fd9\u5e76\u4e0d\u80fd\u5b8c\u5168\u4fdd\u8bc1\u57df\u540d\u7684\u771f\u5b9e\u6027\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u7b2c\u4e09\u65b9\u5e93\u68c0\u67e5<\/p>\n<\/p>\n<p><p>\u6709\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u548c\u670d\u52a1\u53ef\u4ee5\u7528\u6765\u68c0\u67e5\u57df\u540d\u7684\u4fe1\u8a89\u548c\u5386\u53f2\uff0c\u6bd4\u5982<code>whois<\/code>\u5e93\u548c<code>VirusTotal<\/code> API\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528<code>whois<\/code>\u5e93\u68c0\u67e5\u57df\u540d\u7684\u6ce8\u518c\u4fe1\u606f\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import whois<\/p>\n<p>def check_domain_via_whois(domain):<\/p>\n<p>    try:<\/p>\n<p>        domain_info = whois.whois(domain)<\/p>\n<p>        print(f&quot;Domain {domain} was registered by {domain_info.registrar}&quot;)<\/p>\n<p>        return True<\/p>\n<p>    except Exception as e:<\/p>\n<p>        print(f&quot;An error occurred: {e}&quot;)<\/p>\n<p>        return False<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>check_domain_via_whois(&quot;example.com&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u67e5\u8be2\u57df\u540d\u7684\u6ce8\u518c\u4fe1\u606f\uff0c\u53ef\u4ee5\u83b7\u53d6\u57df\u540d\u7684\u6ce8\u518c\u5546\u3001\u6ce8\u518c\u65e5\u671f\u7b49\u4fe1\u606f\uff0c\u4ece\u800c\u5e2e\u52a9\u5224\u65ad\u57df\u540d\u7684\u771f\u5b9e\u6027\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528<code>VirusTotal<\/code> API\u68c0\u67e5\u57df\u540d\u7684\u4fe1\u8a89\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>def check_domain_via_virustotal(domain, api_key):<\/p>\n<p>    url = f&quot;https:\/\/www.virustotal.com\/api\/v3\/domains\/{domain}&quot;<\/p>\n<p>    headers = {&quot;x-apikey&quot;: api_key}<\/p>\n<p>    response = requests.get(url, headers=headers)<\/p>\n<p>    if response.status_code == 200:<\/p>\n<p>        result = response.json()<\/p>\n<p>        print(f&quot;VirusTotal report for {domain}: {result}&quot;)<\/p>\n<p>        return True<\/p>\n<p>    else:<\/p>\n<p>        print(f&quot;Failed to get report for {domain}&quot;)<\/p>\n<p>        return False<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<h2><strong>check_domain_via_virustotal(&quot;example.com&quot;, &quot;YOUR_API_KEY&quot;)<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>VirusTotal<\/code>\u63d0\u4f9b\u7684API\u53ef\u4ee5\u68c0\u6d4b\u57df\u540d\u662f\u5426\u4e0e\u6076\u610f\u6d3b\u52a8\u76f8\u5173\u8054\uff0c\u4ece\u800c\u5e2e\u52a9\u5224\u65ad\u57df\u540d\u7684\u5b89\u5168\u6027\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u7ed3\u5408\u591a\u79cd\u65b9\u6cd5\u8fdb\u884c\u7efc\u5408\u5224\u65ad<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5355\u4e00\u7684\u65b9\u6cd5\u53ef\u80fd\u65e0\u6cd5\u5168\u9762\u5224\u65ad\u57df\u540d\u7684\u771f\u5b9e\u6027\u3002\u56e0\u6b64\uff0c\u7ed3\u5408\u591a\u79cd\u65b9\u6cd5\u8fdb\u884c\u7efc\u5408\u5224\u65ad\u662f\u975e\u5e38\u6709\u6548\u7684\u7b56\u7565\u3002\u53ef\u4ee5\u5148\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u6392\u9664\u683c\u5f0f\u4e0d\u5408\u6cd5\u7684\u57df\u540d\uff0c\u7136\u540e\u901a\u8fc7DNS\u89e3\u6790\u9a8c\u8bc1\u57df\u540d\u7684\u53ef\u89e3\u6790\u6027\uff0c\u6700\u540e\u901a\u8fc7\u7b2c\u4e09\u65b9\u670d\u52a1\u83b7\u53d6\u66f4\u591a\u7684\u57df\u540d\u4fe1\u606f\u548c\u4fe1\u8a89\u62a5\u544a\u3002<\/p>\n<\/p>\n<ol>\n<li>\u7efc\u5408\u68c0\u67e5\u51fd\u6570\u793a\u4f8b\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">def comprehensive_domain_check(domain, api_key):<\/p>\n<p>    if not is_valid_domain(domain):<\/p>\n<p>        return False<\/p>\n<p>    if not check_domain_via_socket(domain):<\/p>\n<p>        return False<\/p>\n<p>    if not check_domain_via_whois(domain):<\/p>\n<p>        return False<\/p>\n<p>    if not check_domain_via_virustotal(domain, api_key):<\/p>\n<p>        return False<\/p>\n<p>    print(f&quot;The domain {domain} passed all checks&quot;)<\/p>\n<p>    return True<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<h2><strong>comprehensive_domain_check(&quot;example.com&quot;, &quot;YOUR_API_KEY&quot;)<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u7efc\u5408\u591a\u79cd\u68c0\u67e5\u624b\u6bb5\uff0c\u53ef\u4ee5\u66f4\u5168\u9762\u5730\u8bc4\u4f30\u57df\u540d\u7684\u771f\u5b9e\u6027\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57df\u540d\u89e3\u6790\u7684\u53ef\u9760\u6027<\/strong>\uff1aDNS\u89e3\u6790\u662f\u5224\u5b9a\u57df\u540d\u771f\u5b9e\u6027\u7684\u6838\u5fc3\u65b9\u6cd5\u4e4b\u4e00\uff0c\u4f46\u4e5f\u9700\u8981\u6ce8\u610fDNS\u6c61\u67d3\u548c\u52ab\u6301\u7684\u95ee\u9898\u3002\u4f7f\u7528\u53ef\u4fe1\u8d56\u7684DNS\u670d\u52a1\u5668\u53ef\u4ee5\u63d0\u9ad8\u89e3\u6790\u7ed3\u679c\u7684\u53ef\u9760\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5c40\u9650\u6027<\/strong>\uff1a\u6b63\u5219\u8868\u8fbe\u5f0f\u53ea\u80fd\u5224\u65ad\u57df\u540d\u7684\u683c\u5f0f\u662f\u5426\u6b63\u786e\uff0c\u4e0d\u80fd\u5224\u65ad\u57df\u540d\u7684\u771f\u5b9e\u6027\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u4f7f\u7528<\/strong>\uff1a\u4f7f\u7528<code>whois<\/code>\u548c<code>VirusTotal<\/code>\u7b49\u7b2c\u4e09\u65b9\u670d\u52a1\u53ef\u4ee5\u5e2e\u52a9\u5224\u65ad\u57df\u540d\u7684\u4fe1\u8a89\u548c\u5386\u53f2\u4fe1\u606f\uff0c\u4f46\u9700\u6ce8\u610fAPI\u8c03\u7528\u7684\u9650\u5236\u548c\u9690\u79c1\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\u548c\u5de5\u5177\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u533a\u5206\u771f\u5047\u57df\u540d\uff0c\u4ece\u800c\u63d0\u9ad8\u7f51\u7edc\u5b89\u5168\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5224\u65ad\u4e00\u4e2a\u57df\u540d\u662f\u5426\u771f\u5b9e\uff1f<\/strong><br \/>\u5224\u65ad\u57df\u540d\u7684\u771f\u5b9e\u6027\u53ef\u4ee5\u901a\u8fc7\u591a\u4e2a\u65b9\u6cd5\u8fdb\u884c\u3002\u9996\u5148\uff0c\u68c0\u67e5\u57df\u540d\u7684\u6ce8\u518c\u4fe1\u606f\u662f\u4e00\u4e2a\u6709\u6548\u7684\u6b65\u9aa4\u3002\u4f7f\u7528WHOIS\u67e5\u8be2\u5de5\u5177\u53ef\u4ee5\u67e5\u770b\u57df\u540d\u7684\u6ce8\u518c\u8005\u4fe1\u606f\u3001\u6ce8\u518c\u65e5\u671f\u548c\u5230\u671f\u65e5\u671f\u7b49\u3002\u771f\u5b9e\u7684\u57df\u540d\u901a\u5e38\u4f1a\u6709\u660e\u786e\u7684\u6ce8\u518c\u8005\u4fe1\u606f\uff0c\u800c\u865a\u5047\u7684\u57df\u540d\u53ef\u80fd\u7f3a\u4e4f\u8fd9\u4e9b\u4fe1\u606f\u6216\u663e\u793a\u4e3a\u79c1\u4eba\u6ce8\u518c\u3002<\/p>\n<p><strong>\u6709\u54ea\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u533a\u5206\u771f\u5047\u57df\u540d\uff1f<\/strong><br \/>\u6709\u8bb8\u591a\u5728\u7ebf\u5de5\u5177\u548c\u670d\u52a1\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5224\u65ad\u57df\u540d\u7684\u771f\u5b9e\u6027\u3002\u4f8b\u5982\uff0cWHOIS\u67e5\u8be2\u7f51\u7ad9\u3001DNS\u8bb0\u5f55\u67e5\u8be2\u5de5\u5177\u548c\u57df\u540d\u4fe1\u8a89\u8bc4\u5206\u7f51\u7ad9\u90fd\u53ef\u4ee5\u63d0\u4f9b\u6709\u4ef7\u503c\u7684\u4fe1\u606f\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u7f51\u7edc\u5b89\u5168\u8f6f\u4ef6\u4e5f\u53ef\u4ee5\u5e2e\u52a9\u8bc6\u522b\u53ef\u7591\u7684\u57df\u540d\u3002<\/p>\n<p><strong>\u5728\u8bbf\u95ee\u57df\u540d\u65f6\u6709\u54ea\u4e9b\u5b89\u5168\u63d0\u793a\uff1f<\/strong><br \/>\u8bbf\u95ee\u57df\u540d\u65f6\uff0c\u4fdd\u6301\u8b66\u60d5\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u68c0\u67e5\u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\uff0c\u786e\u4fdd\u4f7f\u7528\u7684\u662fHTTPS\u534f\u8bae\uff0c\u8fd9\u8868\u793a\u8fde\u63a5\u662f\u5b89\u5168\u7684\u3002\u6b64\u5916\uff0c\u7559\u610f\u62fc\u5199\u9519\u8bef\u6216\u4e0d\u5e38\u89c1\u7684\u9876\u7ea7\u57df\u540d\uff08\u5982.xyz\u3001.info\u7b49\uff09\uff0c\u8fd9\u4e9b\u5f80\u5f80\u662f\u865a\u5047\u57df\u540d\u7684\u7279\u5f81\u3002\u5728\u4e0d\u786e\u5b9a\u7684\u60c5\u51b5\u4e0b\uff0c\u6700\u597d\u4e0d\u8981\u8f93\u5165\u4e2a\u4eba\u4fe1\u606f\u6216\u8fdb\u884c\u4efb\u4f55\u91d1\u878d\u4ea4\u6613\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u533a\u5206\u771f\u5047\u57df\u540d\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\uff1aDNS\u89e3\u6790\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u3001\u7b2c\u4e09\u65b9\u5e93\u68c0\u67e5\u3002\u5176\u4e2d\uff0cDNS\u89e3\u6790\u662f\u6700\u4e3a\u76f4\u63a5\u548c [&hellip;]","protected":false},"author":3,"featured_media":957622,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/957617"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=957617"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/957617\/revisions"}],"predecessor-version":[{"id":957624,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/957617\/revisions\/957624"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/957622"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=957617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=957617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=957617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}