{"id":952898,"date":"2024-12-27T01:37:30","date_gmt":"2024-12-26T17:37:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/952898.html"},"modified":"2024-12-27T01:37:32","modified_gmt":"2024-12-26T17:37:32","slug":"python%e5%a6%82%e4%bd%95%e6%90%9c%e9%a2%98","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/952898.html","title":{"rendered":"python\u5982\u4f55\u641c\u9898"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25090559\/155d93dc-9afd-42b8-8d04-0d9ca5b99c6a.webp\" alt=\"python\u5982\u4f55\u641c\u9898\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u8fdb\u884c\u9898\u76ee\u641c\u7d22\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1a\u5229\u7528\u641c\u7d22\u5f15\u64ceAPI\u3001\u81ea\u7136\u8bed\u8a00\u5904\u7406\u5de5\u5177\u3001\u9898\u5e93\u7f51\u7ad9\u7684\u722c\u866b\u6280\u672f\u3001\u5728\u7ebf\u793e\u533a\u95ee\u7b54\u5e73\u53f0\u3002<\/strong>\u5176\u4e2d\uff0c\u5229\u7528\u641c\u7d22\u5f15\u64ceAPI\u662f\u4e00\u79cd\u76f4\u63a5\u4e14\u6709\u6548\u7684\u65b9\u6cd5\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528\u641c\u7d22\u5f15\u64ce\u7684API\u63a5\u53e3\uff0c\u5c06\u9898\u76ee\u4f5c\u4e3a\u67e5\u8be2\u5173\u952e\u8bcd\u53d1\u9001\u8bf7\u6c42\uff0c\u83b7\u53d6\u76f8\u5173\u7b54\u6848\u6216\u89e3\u9898\u601d\u8def\u3002\u4e3a\u4e86\u8fdb\u4e00\u6b65\u8bf4\u660e\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u641c\u7d22\u5f15\u64ceAPI\u5b9e\u73b0\u9898\u76ee\u641c\u7d22\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u641c\u7d22\u5f15\u64ceAPI<\/p>\n<\/p>\n<p><p>\u5229\u7528\u641c\u7d22\u5f15\u64ce\u7684API\u662f\u5b9e\u73b0\u9898\u76ee\u641c\u7d22\u7684\u4e00\u79cd\u9ad8\u6548\u65b9\u5f0f\u3002\u8fd9\u4e9bAPI\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u76f4\u63a5\u8bbf\u95ee\u641c\u7d22\u5f15\u64ce\u7684\u529f\u80fd\uff0c\u83b7\u53d6\u4e0e\u95ee\u9898\u76f8\u5173\u7684\u7f51\u9875\u94fe\u63a5\u3001\u6458\u8981\u7b49\u4fe1\u606f\uff0c\u4ece\u800c\u5feb\u901f\u627e\u5230\u7b54\u6848\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528Google Custom Search API<\/li>\n<\/ol>\n<p><p>Google Custom Search API\u5141\u8bb8\u5f00\u53d1\u8005\u5728\u81ea\u5df1\u7684\u5e94\u7528\u4e2d\u96c6\u6210Google\u7684\u641c\u7d22\u529f\u80fd\u3002\u901a\u8fc7API\u53ef\u4ee5\u6307\u5b9a\u641c\u7d22\u8303\u56f4\u3001\u8fc7\u6ee4\u7ed3\u679c\u7b49\u3002\u4f7f\u7528\u6b64API\u9700\u8981\u5728Google Cloud Platform\u4e0a\u521b\u5efa\u4e00\u4e2a\u9879\u76ee\u5e76\u542f\u7528Custom Search API\uff0c\u83b7\u53d6API\u5bc6\u94a5\u548c\u641c\u7d22\u5f15\u64ceID\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>def google_search(query, api_key, cse_id):<\/p>\n<p>    url = f&quot;https:\/\/www.googleapis.com\/customsearch\/v1?q={query}&amp;key={api_key}&amp;cx={cse_id}&quot;<\/p>\n<p>    response = requests.get(url)<\/p>\n<p>    results = response.json().get(&#39;items&#39;, [])<\/p>\n<p>    return results<\/p>\n<p>api_key = &#39;YOUR_API_KEY&#39;<\/p>\n<p>cse_id = &#39;YOUR_CSE_ID&#39;<\/p>\n<p>query = &#39;Python\u5982\u4f55\u5b9e\u73b0\u5feb\u901f\u6392\u5e8f&#39;<\/p>\n<p>results = google_search(query, api_key, cse_id)<\/p>\n<p>for item in results:<\/p>\n<p>    print(item[&#39;title&#39;], item[&#39;link&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528Bing Search API<\/li>\n<\/ol>\n<p><p>\u5fae\u8f6f\u7684Bing Search API\u4e5f\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5728Python\u4e2d\u4f7f\u7528\u7c7b\u4f3c\u7684\u65b9\u5f0f\u8fdb\u884c\u96c6\u6210\u3002\u4f7f\u7528\u6b64API\u9700\u8981\u5728Azure\u95e8\u6237\u4e2d\u521b\u5efa\u8d44\u6e90\u5e76\u83b7\u53d6API\u5bc6\u94a5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>def bing_search(query, subscription_key):<\/p>\n<p>    url = &quot;https:\/\/api.bing.microsoft.com\/v7.0\/search&quot;<\/p>\n<p>    headers = {&quot;Ocp-Apim-Subscription-Key&quot;: subscription_key}<\/p>\n<p>    params = {&quot;q&quot;: query}<\/p>\n<p>    response = requests.get(url, headers=headers, params=params)<\/p>\n<p>    results = response.json().get(&#39;webPages&#39;, {}).get(&#39;value&#39;, [])<\/p>\n<p>    return results<\/p>\n<p>subscription_key = &#39;YOUR_SUBSCRIPTION_KEY&#39;<\/p>\n<p>query = &#39;Python\u5982\u4f55\u5b9e\u73b0\u5feb\u901f\u6392\u5e8f&#39;<\/p>\n<p>results = bing_search(query, subscription_key)<\/p>\n<p>for item in results:<\/p>\n<p>    print(item[&#39;name&#39;], item[&#39;url&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u81ea\u7136\u8bed\u8a00\u5904\u7406\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u7406\u89e3\u548c\u5206\u6790\u9898\u76ee\u7684\u8bed\u4e49\uff0c\u4ece\u800c\u63d0\u9ad8\u641c\u7d22\u7cbe\u5ea6\u3002Python\u4e2d\u6709\u8bb8\u591a\u5f3a\u5927\u7684NLP\u5e93\uff0c\u5982NLTK\u3001spaCy\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528NLTK\u8fdb\u884c\u9898\u76ee\u5206\u6790<\/li>\n<\/ol>\n<p><p>NLTK\u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u81ea\u7136\u8bed\u8a00\u5904\u7406\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5de5\u5177\u7528\u4e8e\u6587\u672c\u5206\u6790\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import nltk<\/p>\n<p>from nltk.tokenize import word_tokenize<\/p>\n<p>from nltk.corpus import stopwords<\/p>\n<p>def preprocess_question(question):<\/p>\n<p>    tokens = word_tokenize(question)<\/p>\n<p>    stop_words = set(stopwords.words(&#39;english&#39;))<\/p>\n<p>    filtered_tokens = [w for w in tokens if not w.lower() in stop_words]<\/p>\n<p>    return filtered_tokens<\/p>\n<p>nltk.download(&#39;punkt&#39;)<\/p>\n<p>nltk.download(&#39;stopwords&#39;)<\/p>\n<p>question = &quot;How to implement quicksort in Python?&quot;<\/p>\n<p>processed_question = preprocess_question(question)<\/p>\n<p>print(processed_question)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528spaCy\u8fdb\u884c\u8bed\u4e49\u5206\u6790<\/li>\n<\/ol>\n<p><p>spaCy\u662f\u53e6\u4e00\u4e2a\u6d41\u884c\u7684NLP\u5e93\uff0c\u64c5\u957f\u4e8e\u5feb\u901f\u5904\u7406\u5927\u6587\u672c\u5e76\u63d0\u53d6\u6709\u7528\u7684\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import spacy<\/p>\n<p>def semantic_analysis(question):<\/p>\n<p>    nlp = spacy.load(&quot;en_core_web_sm&quot;)<\/p>\n<p>    doc = nlp(question)<\/p>\n<p>    for token in doc:<\/p>\n<p>        print(token.text, token.pos_, token.dep_)<\/p>\n<p>question = &quot;How to implement quicksort in Python?&quot;<\/p>\n<p>semantic_analysis(question)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u9898\u5e93\u7f51\u7ad9\u7684\u722c\u866b\u6280\u672f<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u722c\u866b\u6280\u672f\u53ef\u4ee5\u4ece\u5728\u7ebf\u9898\u5e93\u7f51\u7ad9\u6293\u53d6\u9898\u76ee\u53ca\u7b54\u6848\u3002Scrapy\u662fPython\u4e2d\u4e00\u4e2a\u6d41\u884c\u7684\u6846\u67b6\uff0c\u7528\u4e8e\u6784\u5efa\u722c\u866b\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528Scrapy\u6293\u53d6\u9898\u5e93<\/li>\n<\/ol>\n<p><p>Scrapy\u80fd\u591f\u5904\u7406\u590d\u6742\u7684\u722c\u53d6\u9700\u6c42\uff0c\u901a\u8fc7\u81ea\u5b9a\u4e49\u722c\u866b\u89c4\u5219\uff0c\u53ef\u4ee5\u4ece\u7279\u5b9a\u7684\u7f51\u7ad9\u6293\u53d6\u9700\u8981\u7684\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u9996\u5148\u5b89\u88c5Scrapy<\/p>\n<p>pip install scrapy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u521b\u5efaScrapy\u9879\u76ee\u5e76\u7f16\u5199\u722c\u866b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">scrapy startproject question_scraper<\/p>\n<p>cd question_scraper<\/p>\n<p>scrapy genspider example example.com<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u751f\u6210\u7684\u722c\u866b\u6587\u4ef6\u4e2d\u7f16\u5199\u6293\u53d6\u903b\u8f91\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import scrapy<\/p>\n<p>class ExampleSpider(scrapy.Spider):<\/p>\n<p>    name = &#39;example&#39;<\/p>\n<p>    start_urls = [&#39;http:\/\/example.com\/questions&#39;]<\/p>\n<p>    def parse(self, response):<\/p>\n<p>        for question in response.css(&#39;div.question&#39;):<\/p>\n<p>            yield {<\/p>\n<p>                &#39;title&#39;: question.css(&#39;a::text&#39;).get(),<\/p>\n<p>                &#39;link&#39;: question.css(&#39;a::attr(href)&#39;).get(),<\/p>\n<p>            }<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528BeautifulSoup\u8fdb\u884c\u7b80\u5355\u722c\u53d6<\/li>\n<\/ol>\n<p><p>\u5bf9\u4e8e\u7b80\u5355\u7684\u7f51\u9875\u7ed3\u6784\uff0c\u53ef\u4ee5\u4f7f\u7528BeautifulSoup\u8fdb\u884c\u89e3\u6790\u548c\u6293\u53d6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>from bs4 import BeautifulSoup<\/p>\n<p>def fetch_questions(url):<\/p>\n<p>    response = requests.get(url)<\/p>\n<p>    soup = BeautifulSoup(response.text, &#39;html.parser&#39;)<\/p>\n<p>    questions = soup.find_all(&#39;div&#39;, class_=&#39;question&#39;)<\/p>\n<p>    for question in questions:<\/p>\n<p>        title = question.find(&#39;a&#39;).text<\/p>\n<p>        link = question.find(&#39;a&#39;)[&#39;href&#39;]<\/p>\n<p>        print(title, link)<\/p>\n<p>fetch_questions(&#39;http:\/\/example.com\/questions&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u5728\u7ebf\u793e\u533a\u95ee\u7b54\u5e73\u53f0<\/p>\n<\/p>\n<p><p>\u5229\u7528\u5728\u7ebf\u793e\u533a\u95ee\u7b54\u5e73\u53f0\u5982StackOverflow\u3001Quora\u7b49\uff0c\u4e5f\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u627e\u5230\u95ee\u9898\u7684\u7b54\u6848\u3002\u8fd9\u4e9b\u5e73\u53f0\u901a\u5e38\u63d0\u4f9bAPI\u4f9b\u5f00\u53d1\u8005\u4f7f\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528StackOverflow API<\/li>\n<\/ol>\n<p><p>StackOverflow\u63d0\u4f9b\u4e86\u4e00\u5957API\uff0c\u5141\u8bb8\u6211\u4eec\u67e5\u8be2\u95ee\u9898\u3001\u7b54\u6848\u7b49\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>def stackoverflow_search(query):<\/p>\n<p>    url = &quot;https:\/\/api.stackexchange.com\/2.3\/search\/advanced&quot;<\/p>\n<p>    params = {<\/p>\n<p>        &#39;order&#39;: &#39;desc&#39;,<\/p>\n<p>        &#39;sort&#39;: &#39;activity&#39;,<\/p>\n<p>        &#39;q&#39;: query,<\/p>\n<p>        &#39;site&#39;: &#39;stackoverflow&#39;<\/p>\n<p>    }<\/p>\n<p>    response = requests.get(url, params=params)<\/p>\n<p>    return response.json().get(&#39;items&#39;, [])<\/p>\n<p>query = &#39;Python quicksort implementation&#39;<\/p>\n<p>results = stackoverflow_search(query)<\/p>\n<p>for item in results:<\/p>\n<p>    print(item[&#39;title&#39;], item[&#39;link&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528Quora API<\/li>\n<\/ol>\n<p><p>\u867d\u7136Quora\u6ca1\u6709\u516c\u5f00\u7684API\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u81ea\u52a8\u5316\u5de5\u5177\u5982Selenium\u6a21\u62df\u7528\u6237\u884c\u4e3a\u8fdb\u884c\u6293\u53d6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from selenium import webdriver<\/p>\n<p>from selenium.webdriver.common.by import By<\/p>\n<p>def quora_search(query):<\/p>\n<p>    driver = webdriver.Chrome()<\/p>\n<p>    driver.get(f&#39;https:\/\/www.quora.com\/search?q={query}&#39;)<\/p>\n<p>    questions = driver.find_elements(By.CLASS_NAME, &#39;q-box&#39;)<\/p>\n<p>    for question in questions:<\/p>\n<p>        print(question.text)<\/p>\n<p>    driver.quit()<\/p>\n<p>quora_search(&#39;Python quicksort implementation&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0cPython\u53ef\u4ee5\u6709\u6548\u5730\u5b9e\u73b0\u9898\u76ee\u641c\u7d22\u3002\u8fd9\u4e9b\u65b9\u6cd5\u7ed3\u5408\u4f7f\u7528\u53ef\u4ee5\u63d0\u9ad8\u9898\u76ee\u641c\u7d22\u7684\u6548\u7387\u548c\u51c6\u786e\u6027\u3002\u7ed3\u5408API\u3001\u81ea\u7136\u8bed\u8a00\u5904\u7406\u548c\u722c\u866b\u6280\u672f\uff0c\u6211\u4eec\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a\u5f3a\u5927\u7684\u9898\u76ee\u641c\u7d22\u5de5\u5177\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>1. <\/strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u6709\u6548\u5730\u627e\u5230\u7f16\u7a0b\u9898\u76ee\uff1f**<br \/>\u53ef\u4ee5\u901a\u8fc7\u591a\u4e2a\u5728\u7ebf\u5e73\u53f0\u6765\u641c\u7d22Python\u7f16\u7a0b\u9898\u76ee\uff0c\u4f8b\u5982LeetCode\u3001HackerRank\u548cCodewars\u3002\u8fd9\u4e9b\u5e73\u53f0\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u9898\u5e93\uff0c\u6db5\u76d6\u4e86\u4ece\u57fa\u7840\u5230\u9ad8\u7ea7\u7684\u5404\u79cd\u96be\u5ea6\u7ea7\u522b\u3002\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u7b5b\u9009\u9898\u76ee\uff0c\u6bd4\u5982\u6309\u7167\u6807\u7b7e\uff08\u5982\u7b97\u6cd5\u3001\u6570\u636e\u7ed3\u6784\uff09\u6216\u96be\u5ea6\u7ea7\u522b\u8fdb\u884c\u641c\u7d22\u3002<\/p>\n<p><strong>2. <\/strong>\u6709\u54ea\u4e9b\u5de5\u5177\u6216\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u5728Python\u4e2d\u5b9e\u73b0\u81ea\u52a8\u5316\u641c\u9898\uff1f**<br \/>\u6709\u4e00\u4e9bPython\u5e93\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5b9e\u73b0\u81ea\u52a8\u5316\u641c\u9898\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528BeautifulSoup\u548crequests\u5e93\u6765\u6293\u53d6\u7f51\u9875\u5185\u5bb9\uff0c\u6216\u8005\u4f7f\u7528API\u63a5\u53e3\u6765\u83b7\u53d6\u9898\u76ee\u6570\u636e\u3002\u6b64\u5916\uff0cScrapy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6846\u67b6\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u8fdb\u884c\u6570\u636e\u6293\u53d6\u548c\u5904\u7406\u3002<\/p>\n<p><strong>3. <\/strong>\u5982\u4f55\u5229\u7528Python\u6765\u89e3\u51b3\u7279\u5b9a\u7684\u7f16\u7a0b\u9898\u76ee\uff1f**<br \/>\u89e3\u51b3\u7f16\u7a0b\u9898\u76ee\u7684\u5173\u952e\u5728\u4e8e\u7406\u89e3\u9898\u610f\u548c\u8bbe\u8ba1\u9ad8\u6548\u7684\u7b97\u6cd5\u3002\u5efa\u8bae\u5148\u4ed4\u7ec6\u9605\u8bfb\u9898\u76ee\uff0c\u786e\u8ba4\u8f93\u5165\u8f93\u51fa\u8981\u6c42\uff0c\u7136\u540e\u53ef\u4ee5\u4f7f\u7528Python\u7684\u5185\u7f6e\u51fd\u6570\u548c\u6570\u636e\u7ed3\u6784\uff08\u5982\u5217\u8868\u3001\u5b57\u5178\u7b49\uff09\u6765\u5b9e\u73b0\u89e3\u6cd5\u3002\u5b8c\u6210\u521d\u6b65\u89e3\u6cd5\u540e\uff0c\u53ef\u4ee5\u8fdb\u884c\u6d4b\u8bd5\u548c\u4f18\u5316\uff0c\u4ee5\u786e\u4fdd\u4ee3\u7801\u7684\u6b63\u786e\u6027\u548c\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u8fdb\u884c\u9898\u76ee\u641c\u7d22\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1a\u5229\u7528\u641c\u7d22\u5f15\u64ceAPI\u3001\u81ea\u7136\u8bed\u8a00\u5904\u7406\u5de5\u5177\u3001\u9898\u5e93\u7f51\u7ad9\u7684\u722c\u866b\u6280\u672f\u3001\u5728\u7ebf\u793e\u533a\u95ee [&hellip;]","protected":false},"author":3,"featured_media":952904,"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\/952898"}],"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=952898"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/952898\/revisions"}],"predecessor-version":[{"id":952909,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/952898\/revisions\/952909"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/952904"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=952898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=952898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=952898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}