{"id":1138112,"date":"2025-01-08T21:56:06","date_gmt":"2025-01-08T13:56:06","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1138112.html"},"modified":"2025-01-08T21:56:09","modified_gmt":"2025-01-08T13:56:09","slug":"python%e5%a6%82%e4%bd%95%e7%88%ac%e5%8f%96%e8%82%a1%e7%a5%a8%e7%bd%91%e9%a1%b5%e7%9a%84%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1138112.html","title":{"rendered":"python\u5982\u4f55\u722c\u53d6\u80a1\u7968\u7f51\u9875\u7684\u6570\u636e\u5e93"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25101806\/dbdaf9ac-f2f5-4650-a926-a38599f5cd44.webp\" alt=\"python\u5982\u4f55\u722c\u53d6\u80a1\u7968\u7f51\u9875\u7684\u6570\u636e\u5e93\" \/><\/p>\n<p><p> <strong>Python\u722c\u53d6\u80a1\u7968\u7f51\u9875\u6570\u636e\u5e93\u7684\u65b9\u6cd5<\/strong>\uff1a<strong>\u4f7f\u7528requests\u5e93\u53d1\u9001HTTP\u8bf7\u6c42\u3001\u89e3\u6790HTML\u9875\u9762\u5185\u5bb9\u3001\u5904\u7406\u6570\u636e\u5b58\u50a8<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u89e3\u6790HTML\u9875\u9762\u5185\u5bb9<\/strong>\u662f\u5173\u952e\uff0c\u56e0\u4e3a\u5b83\u51b3\u5b9a\u4e86\u6211\u4eec\u80fd\u5426\u6b63\u786e\u5730\u63d0\u53d6\u5230\u6240\u9700\u7684\u80a1\u7968\u6570\u636e\u3002\u5177\u4f53\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528BeautifulSoup\u5e93\u6765\u5b9e\u73b0\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u9ad8\u6548\u5730\u89e3\u6790HTML\u6587\u6863\uff0c\u627e\u5230\u76ee\u6807\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4e86\u89e3\u80a1\u7968\u6570\u636e\u7684\u6765\u6e90\u548c\u7ed3\u6784<\/h3>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u722c\u53d6\u80a1\u7968\u6570\u636e\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u660e\u786e\u6211\u4eec\u8981\u722c\u53d6\u7684\u6570\u636e\u6765\u6e90\u548c\u6570\u636e\u7ed3\u6784\u3002\u5e38\u89c1\u7684\u80a1\u7968\u6570\u636e\u6765\u6e90\u5305\u62ecYahoo Finance\u3001Google Finance\u4ee5\u53ca\u56fd\u5185\u7684\u65b0\u6d6a\u8d22\u7ecf\u7b49\u3002\u6bcf\u4e2a\u6570\u636e\u6e90\u7684\u9875\u9762\u7ed3\u6784\u548c\u6570\u636e\u683c\u5f0f\u53ef\u80fd\u6709\u6240\u4e0d\u540c\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u5bf9\u76ee\u6807\u7f51\u9875\u7684HTML\u7ed3\u6784\u8fdb\u884c\u8be6\u7ec6\u5206\u6790\uff0c\u4ee5\u4fbf\u6b63\u786e\u63d0\u53d6\u6240\u9700\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p><strong>Yahoo Finance\u4e3a\u4f8b<\/strong>\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00Yahoo Finance\u7f51\u7ad9\uff0c\u641c\u7d22\u4f60\u611f\u5174\u8da3\u7684\u80a1\u7968\uff0c\u4f8b\u5982AAPL\uff08\u82f9\u679c\u516c\u53f8\uff09\u3002<\/li>\n<li>\u4f7f\u7528\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u8005\u5de5\u5177\uff08F12\uff09\u67e5\u770b\u9875\u9762\u7684HTML\u7ed3\u6784\uff0c\u627e\u5230\u5305\u542b\u80a1\u7968\u6570\u636e\u7684\u6807\u7b7e\u548c\u7c7b\u540d\u3002<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u4f7f\u7528requests\u5e93\u53d1\u9001HTTP\u8bf7\u6c42<\/h3>\n<\/p>\n<p><p>\u5728\u660e\u786e\u4e86\u6570\u636e\u6765\u6e90\u548c\u9875\u9762\u7ed3\u6784\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528requests\u5e93\u53d1\u9001HTTP\u8bf7\u6c42\uff0c\u83b7\u53d6\u7f51\u9875\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<h2><strong>\u76ee\u6807\u7f51\u9875\u7684URL<\/strong><\/h2>\n<p>url = &quot;https:\/\/finance.yahoo.com\/quote\/AAPL&quot;<\/p>\n<h2><strong>\u53d1\u9001HTTP GET\u8bf7\u6c42<\/strong><\/h2>\n<p>response = requests.get(url)<\/p>\n<h2><strong>\u68c0\u67e5\u8bf7\u6c42\u662f\u5426\u6210\u529f<\/strong><\/h2>\n<p>if response.status_code == 200:<\/p>\n<p>    html_content = response.text<\/p>\n<p>else:<\/p>\n<p>    print(&quot;F<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>led to retrieve the webpage.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u89e3\u6790HTML\u9875\u9762\u5185\u5bb9<\/h3>\n<\/p>\n<p><p>\u83b7\u53d6\u5230\u7f51\u9875\u5185\u5bb9\u540e\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528BeautifulSoup\u5e93\u6765\u89e3\u6790HTML\u6587\u6863\uff0c\u63d0\u53d6\u6211\u4eec\u9700\u8981\u7684\u80a1\u7968\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from bs4 import BeautifulSoup<\/p>\n<h2><strong>\u4f7f\u7528BeautifulSoup\u89e3\u6790HTML\u6587\u6863<\/strong><\/h2>\n<p>soup = BeautifulSoup(html_content, &#39;html.parser&#39;)<\/p>\n<h2><strong>\u67e5\u627e\u5305\u542b\u80a1\u7968\u4ef7\u683c\u7684\u6807\u7b7e<\/strong><\/h2>\n<p>price_tag = soup.find(&#39;fin-streamer&#39;, {&#39;data-field&#39;: &#39;regularMarketPrice&#39;})<\/p>\n<h2><strong>\u63d0\u53d6\u80a1\u7968\u4ef7\u683c<\/strong><\/h2>\n<p>if price_tag:<\/p>\n<p>    stock_price = price_tag.text<\/p>\n<p>    print(f&quot;Current stock price: {stock_price}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Failed to retrieve the stock price.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406\u6570\u636e\u5b58\u50a8<\/h3>\n<\/p>\n<p><p>\u722c\u53d6\u5230\u7684\u6570\u636e\u53ef\u4ee5\u5b58\u50a8\u5230\u672c\u5730\u6587\u4ef6\u3001\u6570\u636e\u5e93\u6216\u8005\u901a\u8fc7API\u4f20\u8f93\u5230\u5176\u4ed6\u7cfb\u7edf\u4e2d\u3002\u8fd9\u91cc\u6211\u4eec\u4ee5\u5c06\u6570\u636e\u5b58\u50a8\u5230CSV\u6587\u4ef6\u4e3a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import csv<\/p>\n<p>from datetime import datetime<\/p>\n<h2><strong>\u5f53\u524d\u65f6\u95f4<\/strong><\/h2>\n<p>current_time = datetime.now().strftime(&#39;%Y-%m-%d %H:%M:%S&#39;)<\/p>\n<h2><strong>CSV\u6587\u4ef6\u7684\u5217\u540d<\/strong><\/h2>\n<p>fieldnames = [&#39;Time&#39;, &#39;Stock Price&#39;]<\/p>\n<h2><strong>\u6570\u636e<\/strong><\/h2>\n<p>data = {&#39;Time&#39;: current_time, &#39;Stock Price&#39;: stock_price}<\/p>\n<h2><strong>\u5199\u5165CSV\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&#39;stock_prices.csv&#39;, &#39;a&#39;, newline=&#39;&#39;) as csvfile:<\/p>\n<p>    writer = csv.DictWriter(csvfile, fieldnames=fieldnames)<\/p>\n<p>    # \u5199\u5165\u8868\u5934\uff08\u5982\u679c\u6587\u4ef6\u662f\u65b0\u521b\u5efa\u7684\uff09<\/p>\n<p>    if csvfile.tell() == 0:<\/p>\n<p>        writer.writeheader()<\/p>\n<p>    # \u5199\u5165\u6570\u636e<\/p>\n<p>    writer.writerow(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u5b9a\u65f6\u4efb\u52a1\u81ea\u52a8\u5316\u722c\u53d6<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u5b9e\u73b0\u5b9a\u65f6\u722c\u53d6\u80a1\u7968\u6570\u636e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u7684schedule\u5e93\u6216\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b9a\u65f6\u4efb\u52a1\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528schedule\u5e93<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import schedule<\/p>\n<p>import time<\/p>\n<p>def job():<\/p>\n<p>    # \u53d1\u9001HTTP\u8bf7\u6c42\u3001\u89e3\u6790HTML\u3001\u5904\u7406\u6570\u636e\u5b58\u50a8\u7684\u4ee3\u7801<\/p>\n<p>    pass<\/p>\n<h2><strong>\u6bcf\u96941\u5c0f\u65f6\u6267\u884c\u4e00\u6b21\u722c\u53d6\u4efb\u52a1<\/strong><\/h2>\n<p>schedule.every(1).hours.do(job)<\/p>\n<p>while True:<\/p>\n<p>    schedule.run_pending()<\/p>\n<p>    time.sleep(1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u6ce8\u610f\u4e8b\u9879\u548c\u9632\u53cd\u722c\u673a\u5236<\/h3>\n<\/p>\n<p><p>\u5728\u722c\u53d6\u7f51\u9875\u6570\u636e\u65f6\uff0c\u6211\u4eec\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5408\u6cd5\u6027<\/strong>\uff1a\u786e\u4fdd\u722c\u53d6\u884c\u4e3a\u4e0d\u8fdd\u53cd\u76ee\u6807\u7f51\u7ad9\u7684\u4f7f\u7528\u6761\u6b3e\u548c\u6cd5\u5f8b\u6cd5\u89c4\u3002<\/li>\n<li><strong>\u9891\u7387\u63a7\u5236<\/strong>\uff1a\u5408\u7406\u8bbe\u7f6e\u722c\u53d6\u9891\u7387\uff0c\u907f\u514d\u7ed9\u76ee\u6807\u7f51\u7ad9\u670d\u52a1\u5668\u5e26\u6765\u8fc7\u5927\u538b\u529b\u3002<\/li>\n<li><strong>Headers\u8bbe\u7f6e<\/strong>\uff1a\u5728\u53d1\u9001HTTP\u8bf7\u6c42\u65f6\uff0c\u53ef\u4ee5\u8bbe\u7f6eUser-Agent\u7b49Headers\uff0c\u6a21\u62df\u771f\u5b9e\u7528\u6237\u8bbf\u95ee\uff0c\u907f\u514d\u88ab\u53cd\u722c\u673a\u5236\u8bc6\u522b\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">headers = {<\/p>\n<p>    &#39;User-Agent&#39;: &#39;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/58.0.3029.110 Safari\/537.3&#39;<\/p>\n<p>}<\/p>\n<p>response = requests.get(url, headers=headers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u5904\u7406\u52a8\u6001\u7f51\u9875\u5185\u5bb9<\/h3>\n<\/p>\n<p><p>\u6709\u4e9b\u80a1\u7968\u6570\u636e\u9875\u9762\u662f\u901a\u8fc7JavaScript\u52a8\u6001\u52a0\u8f7d\u7684\uff0crequests\u5e93\u65e0\u6cd5\u76f4\u63a5\u83b7\u53d6\u5230\u8fd9\u4e9b\u6570\u636e\u3002\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528Selenium\u5e93\u6a21\u62df\u6d4f\u89c8\u5668\u884c\u4e3a\uff0c\u83b7\u53d6\u52a8\u6001\u52a0\u8f7d\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from selenium import webdriver<\/p>\n<h2><strong>\u542f\u52a8\u6d4f\u89c8\u5668<\/strong><\/h2>\n<p>driver = webdriver.Chrome()<\/p>\n<h2><strong>\u6253\u5f00\u76ee\u6807\u7f51\u9875<\/strong><\/h2>\n<p>driver.get(&quot;https:\/\/finance.yahoo.com\/quote\/AAPL&quot;)<\/p>\n<h2><strong>\u7b49\u5f85\u9875\u9762\u52a0\u8f7d\u5b8c\u6210<\/strong><\/h2>\n<p>time.sleep(5)<\/p>\n<h2><strong>\u83b7\u53d6\u9875\u9762\u5185\u5bb9<\/strong><\/h2>\n<p>html_content = driver.page_source<\/p>\n<h2><strong>\u5173\u95ed\u6d4f\u89c8\u5668<\/strong><\/h2>\n<p>driver.quit()<\/p>\n<h2><strong>\u4f7f\u7528BeautifulSoup\u89e3\u6790HTML\u6587\u6863<\/strong><\/h2>\n<p>soup = BeautifulSoup(html_content, &#39;html.parser&#39;)<\/p>\n<h2><strong>\u5269\u4e0b\u7684\u89e3\u6790\u548c\u5904\u7406\u4ee3\u7801\u540c\u4e0a<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u722c\u53d6\u80a1\u7968\u7f51\u9875\u7684\u6570\u636e\u5e93\u3002<strong>\u4f7f\u7528requests\u5e93\u53d1\u9001HTTP\u8bf7\u6c42\u3001\u89e3\u6790HTML\u9875\u9762\u5185\u5bb9\u3001\u5904\u7406\u6570\u636e\u5b58\u50a8<\/strong>\u662f\u57fa\u672c\u6d41\u7a0b\uff0c\u800c<strong>\u89e3\u6790HTML\u9875\u9762\u5185\u5bb9<\/strong>\u662f\u5173\u952e\u6b65\u9aa4\u3002\u4e3a\u4e86\u5e94\u5bf9\u52a8\u6001\u7f51\u9875\u5185\u5bb9\u548c\u53cd\u722c\u673a\u5236\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u7075\u6d3b\u4f7f\u7528Selenium\u7b49\u5de5\u5177\uff0c\u5e76\u6ce8\u610f\u722c\u53d6\u884c\u4e3a\u7684\u5408\u6cd5\u6027\u548c\u9891\u7387\u63a7\u5236\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u9ad8\u6548\u5730\u63d0\u53d6\u548c\u5904\u7406\u80a1\u7968\u6570\u636e\uff0c\u4e3a\u6295\u8d44\u51b3\u7b56\u63d0\u4f9b\u6570\u636e\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684Python\u5e93\u6765\u722c\u53d6\u80a1\u7968\u7f51\u9875\u6570\u636e\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6709\u8bb8\u591a\u5e93\u53ef\u4ee5\u7528\u6765\u722c\u53d6\u7f51\u9875\u6570\u636e\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u5305\u62ecBeautiful Soup\u3001Scrapy\u548cRequests\u3002Beautiful Soup\u9002\u5408\u5904\u7406\u7b80\u5355\u7684\u7f51\u9875\u89e3\u6790\uff0c\u800cScrapy\u5219\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6846\u67b6\uff0c\u9002\u5408\u5927\u89c4\u6a21\u722c\u53d6\u548c\u6570\u636e\u5904\u7406\u3002Requests\u5e93\u5219\u7528\u4e8e\u53d1\u8d77HTTP\u8bf7\u6c42\uff0c\u83b7\u53d6\u7f51\u9875\u5185\u5bb9\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\uff0c\u53ef\u4ee5\u63d0\u5347\u722c\u53d6\u6548\u7387\u548c\u6570\u636e\u5904\u7406\u80fd\u529b\u3002<\/p>\n<p><strong>\u722c\u53d6\u80a1\u7968\u6570\u636e\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u6cd5\u5f8b\u548c\u9053\u5fb7\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u722c\u53d6\u80a1\u7968\u7f51\u9875\u6570\u636e\u65f6\uff0c\u5fc5\u987b\u9075\u5faa\u76f8\u5173\u6cd5\u5f8b\u6cd5\u89c4\uff0c\u786e\u4fdd\u4e0d\u4fb5\u72af\u7f51\u7ad9\u7684\u7248\u6743\u6216\u4f7f\u7528\u6761\u6b3e\u3002\u4e00\u4e9b\u7f51\u7ad9\u53ef\u80fd\u4f1a\u9650\u5236\u722c\u866b\u8bbf\u95ee\uff0c\u4f7f\u7528robots.txt\u6587\u4ef6\u6307\u660e\u5141\u8bb8\u6216\u7981\u6b62\u7684\u722c\u53d6\u884c\u4e3a\u3002\u5efa\u8bae\u5728\u722c\u53d6\u6570\u636e\u524d\u4ed4\u7ec6\u9605\u8bfb\u7f51\u7ad9\u7684\u4f7f\u7528\u6761\u6b3e\uff0c\u5e76\u5c3d\u91cf\u907f\u514d\u5bf9\u670d\u52a1\u5668\u9020\u6210\u8d1f\u62c5\uff0c\u5408\u7406\u8bbe\u7f6e\u8bf7\u6c42\u9891\u7387\uff0c\u4ee5\u5c0a\u91cd\u7f51\u7ad9\u8fd0\u8425\u8005\u7684\u6743\u5229\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u722c\u53d6\u5230\u7684\u80a1\u7968\u6570\u636e\u4ee5\u4fbf\u4e8e\u5206\u6790\uff1f<\/strong><br \/>\u722c\u53d6\u5230\u7684\u80a1\u7968\u6570\u636e\u901a\u5e38\u4ee5HTML\u683c\u5f0f\u5b58\u5728\uff0c\u4f7f\u7528Python\u7684pandas\u5e93\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u6570\u636e\u6574\u7406\u6210DataFrame\u683c\u5f0f\uff0c\u4fbf\u4e8e\u540e\u7eed\u5206\u6790\u3002\u901a\u8fc7\u6570\u636e\u6e05\u6d17\u3001\u53bb\u91cd\u548c\u683c\u5f0f\u5316\u7b49\u6b65\u9aa4\uff0c\u53ef\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u51c6\u786e\u6027\u548c\u53ef\u7528\u6027\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u5229\u7528Matplotlib\u6216Seaborn\u7b49\u53ef\u89c6\u5316\u5e93\uff0c\u5c06\u6570\u636e\u8fdb\u884c\u56fe\u8868\u5c55\u793a\uff0c\u4ece\u800c\u5e2e\u52a9\u5206\u6790\u8d8b\u52bf\u548c\u505a\u51fa\u6295\u8d44\u51b3\u7b56\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u722c\u53d6\u80a1\u7968\u7f51\u9875\u6570\u636e\u5e93\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528requests\u5e93\u53d1\u9001HTTP\u8bf7\u6c42\u3001\u89e3\u6790HTML\u9875\u9762\u5185\u5bb9\u3001\u5904\u7406\u6570\u636e\u5b58 [&hellip;]","protected":false},"author":3,"featured_media":1138115,"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\/1138112"}],"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=1138112"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1138112\/revisions"}],"predecessor-version":[{"id":1138116,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1138112\/revisions\/1138116"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1138115"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1138112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1138112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1138112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}