{"id":1098285,"date":"2025-01-08T15:19:47","date_gmt":"2025-01-08T07:19:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1098285.html"},"modified":"2025-01-08T15:19:49","modified_gmt":"2025-01-08T07:19:49","slug":"python%e7%88%ac%e8%99%ab%e5%a6%82%e4%bd%95%e7%94%a8%e4%bb%a3%e7%a0%81%e5%88%92%e5%88%b0%e5%ba%95%e7%ab%af-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1098285.html","title":{"rendered":"python\u722c\u866b\u5982\u4f55\u7528\u4ee3\u7801\u5212\u5230\u5e95\u7aef"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24212651\/a0909513-96e0-4fbe-b96c-4ad9faaa07ca.webp\" alt=\"python\u722c\u866b\u5982\u4f55\u7528\u4ee3\u7801\u5212\u5230\u5e95\u7aef\" \/><\/p>\n<p><p> <strong>Python\u722c\u866b\u53ef\u4ee5\u901a\u8fc7JavaScript\u6a21\u62df\u6eda\u52a8\u3001\u4f7f\u7528Selenium\u5e93\u3001\u5229\u7528\u6d4f\u89c8\u5668\u5f00\u53d1\u8005\u5de5\u5177\u83b7\u53d6\u52a8\u6001\u52a0\u8f7d\u5185\u5bb9\u7684API\u3001\u89e3\u6790\u5206\u9875\u6570\u636e\u7b49\u65b9\u5f0f\u5b9e\u73b0\u9875\u9762\u5230\u5e95\u7aef\u7684\u722c\u53d6\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528Selenium\u5e93\u662f\u6700\u5e38\u7528\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u80fd\u591f\u6a21\u62df\u7528\u6237\u6eda\u52a8\u64cd\u4f5c\uff0c\u4ece\u800c\u52a0\u8f7d\u9875\u9762\u5e95\u90e8\u7684\u5185\u5bb9\u3002Selenium\u5e93\u53ef\u4ee5\u63a7\u5236\u6d4f\u89c8\u5668\u8fdb\u884c\u81ea\u52a8\u5316\u64cd\u4f5c\uff0c\u5b9e\u73b0\u6a21\u62df\u6eda\u52a8\uff0c\u89e3\u6790\u52a8\u6001\u52a0\u8f7d\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528Selenium\u5e93\u6a21\u62df\u6eda\u52a8<\/strong><\/p>\n<\/p>\n<p><p>Selenium\u662f\u4e00\u4e2a\u7528\u4e8eWeb\u5e94\u7528\u7a0b\u5e8f\u6d4b\u8bd5\u7684\u5de5\u5177\uff0c\u5b83\u652f\u6301\u591a\u79cd\u6d4f\u89c8\u5668\uff0c\u5982Chrome\u3001Firefox\u7b49\u3002\u901a\u8fc7Selenium\uff0c\u7a0b\u5e8f\u53ef\u4ee5\u6a21\u62df\u7528\u6237\u884c\u4e3a\uff0c\u4f8b\u5982\u70b9\u51fb\u3001\u8f93\u5165\u3001\u6eda\u52a8\u7b49\u64cd\u4f5c\u3002\u4f7f\u7528Selenium\u6a21\u62df\u6eda\u52a8\u64cd\u4f5c\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u51e0\u884c\u4ee3\u7801\u5373\u53ef\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5\u548c\u914d\u7f6eSelenium<\/h3>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u4f7f\u7528Selenium\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5Selenium\u5e93\u548c\u6d4f\u89c8\u5668\u9a71\u52a8\u7a0b\u5e8f\u3002\u4ee5Chrome\u6d4f\u89c8\u5668\u4e3a\u4f8b\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5Selenium\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install selenium<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u4e0b\u8f7d\u5e76\u914d\u7f6eChrome\u6d4f\u89c8\u5668\u7684\u9a71\u52a8\u7a0b\u5e8f\uff08chromedriver\uff09\u3002\u53ef\u4ee5\u4ece<a href=\"https:\/\/sites.google.com\/a\/chromium.org\/chromedriver\/downloads%E4%B8%8B%E8%BD%BD%E9%80%82%E5%90%88%E4%BD%A0%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E7%89%88%E6%9C%AC%EF%BC%8C%E5%B9%B6%E5%B0%86%E5%85%B6%E8%B7%AF%E5%BE%84%E6%B7%BB%E5%8A%A0%E5%88%B0%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E4%B8%AD%E3%80%82\">https:\/\/sites.google.com\/a\/chromium.org\/chromedriver\/downloads\u4e0b\u8f7d\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\uff0c\u5e76\u5c06\u5176\u8def\u5f84\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/a><\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u7f16\u5199\u4ee3\u7801\u5b9e\u73b0\u6eda\u52a8\u5230\u5e95\u7aef<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Selenium\u6a21\u62df\u6eda\u52a8\u5230\u9875\u9762\u5e95\u7aef\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from selenium import webdriver<\/p>\n<p>from selenium.webdriver.common.keys import Keys<\/p>\n<p>import time<\/p>\n<h2><strong>\u8bbe\u7f6eChrome\u6d4f\u89c8\u5668\u7684\u9009\u9879<\/strong><\/h2>\n<p>options = webdriver.ChromeOptions()<\/p>\n<p>options.add_argument(&#39;--headless&#39;)  # \u65e0\u5934\u6a21\u5f0f\uff0c\u4e0d\u6253\u5f00\u6d4f\u89c8\u5668\u7a97\u53e3<\/p>\n<h2><strong>\u521b\u5efaChrome\u6d4f\u89c8\u5668\u7684\u9a71\u52a8\u7a0b\u5e8f\u5bf9\u8c61<\/strong><\/h2>\n<p>driver = webdriver.Chrome(options=options)<\/p>\n<h2><strong>\u6253\u5f00\u76ee\u6807\u7f51\u9875<\/strong><\/h2>\n<p>driver.get(&#39;https:\/\/example.com&#39;)<\/p>\n<h2><strong>\u6a21\u62df\u6eda\u52a8\u5230\u5e95\u7aef<\/strong><\/h2>\n<p>last_height = driver.execute_script(&quot;return document.body.scrollHeight&quot;)<\/p>\n<p>while True:<\/p>\n<p>    # \u5411\u4e0b\u6eda\u52a8<\/p>\n<p>    driver.execute_script(&quot;window.scrollTo(0, document.body.scrollHeight);&quot;)<\/p>\n<p>    # \u7b49\u5f85\u9875\u9762\u52a0\u8f7d<\/p>\n<p>    time.sleep(2)<\/p>\n<p>    # \u8ba1\u7b97\u65b0\u7684\u6eda\u52a8\u9ad8\u5ea6\u5e76\u4e0e\u4e0a\u4e00\u6b21\u7684\u6eda\u52a8\u9ad8\u5ea6\u8fdb\u884c\u6bd4\u8f83<\/p>\n<p>    new_height = driver.execute_script(&quot;return document.body.scrollHeight&quot;)<\/p>\n<p>    if new_height == last_height:<\/p>\n<p>        break<\/p>\n<p>    last_height = new_height<\/p>\n<h2><strong>\u83b7\u53d6\u9875\u9762\u5185\u5bb9<\/strong><\/h2>\n<p>page_content = driver.page_source<\/p>\n<h2><strong>\u5173\u95ed\u6d4f\u89c8\u5668<\/strong><\/h2>\n<p>driver.quit()<\/p>\n<h2><strong>\u6253\u5370\u9875\u9762\u5185\u5bb9<\/strong><\/h2>\n<p>print(page_content)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u521b\u5efa\u4e86\u4e00\u4e2aChrome\u6d4f\u89c8\u5668\u7684\u9a71\u52a8\u7a0b\u5e8f\u5bf9\u8c61\uff0c\u5e76\u6253\u5f00\u4e86\u76ee\u6807\u7f51\u9875\u3002\u7136\u540e\uff0c\u901a\u8fc7\u53cd\u590d\u6267\u884cJavaScript\u547d\u4ee4\u6765\u6a21\u62df\u5411\u4e0b\u6eda\u52a8\u64cd\u4f5c\uff0c\u6bcf\u6b21\u6eda\u52a8\u540e\u7b49\u5f85\u9875\u9762\u52a0\u8f7d\u5b8c\u6210\u3002\u901a\u8fc7\u6bd4\u8f83\u6eda\u52a8\u524d\u540e\u7684\u9875\u9762\u9ad8\u5ea6\uff0c\u5224\u65ad\u662f\u5426\u5df2\u7ecf\u6eda\u52a8\u5230\u5e95\u7aef\u3002\u5982\u679c\u9875\u9762\u9ad8\u5ea6\u4e0d\u518d\u53d8\u5316\uff0c\u5219\u8bf4\u660e\u5df2\u7ecf\u5230\u5e95\u7aef\uff0c\u505c\u6b62\u6eda\u52a8\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u89e3\u6790\u52a8\u6001\u52a0\u8f7d\u5185\u5bb9<\/h3>\n<\/p>\n<p><p>\u6709\u4e9b\u7f51\u9875\u7684\u5185\u5bb9\u662f\u901a\u8fc7JavaScript\u52a8\u6001\u52a0\u8f7d\u7684\uff0c\u5373\u4f7f\u6eda\u52a8\u5230\u5e95\u7aef\uff0c\u4e5f\u9700\u8981\u8fdb\u4e00\u6b65\u89e3\u6790\u52a0\u8f7d\u7684\u5185\u5bb9\u3002\u53ef\u4ee5\u901a\u8fc7\u5206\u6790\u7f51\u9875\u7684\u7f51\u7edc\u8bf7\u6c42\uff0c\u627e\u51fa\u52a8\u6001\u52a0\u8f7d\u5185\u5bb9\u7684API\u63a5\u53e3\uff0c\u7136\u540e\u76f4\u63a5\u4f7f\u7528requests\u5e93\u83b7\u53d6\u6570\u636e\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<h2><strong>\u89e3\u6790\u52a8\u6001\u52a0\u8f7d\u5185\u5bb9\u7684API\u63a5\u53e3<\/strong><\/h2>\n<p>api_url = &#39;https:\/\/example.com\/api\/data?page=1&#39;<\/p>\n<p>response = requests.get(api_url)<\/p>\n<p>data = response.json()<\/p>\n<h2><strong>\u5904\u7406\u83b7\u53d6\u7684\u6570\u636e<\/strong><\/h2>\n<p>for item in data[&#39;results&#39;]:<\/p>\n<p>    print(item)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u7ed5\u8fc7\u9875\u9762\u6eda\u52a8\uff0c\u76f4\u63a5\u83b7\u53d6\u52a8\u6001\u52a0\u8f7d\u7684\u6570\u636e\uff0c\u63d0\u9ad8\u722c\u53d6\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528BeautifulSoup\u89e3\u6790\u9875\u9762\u5185\u5bb9<\/h3>\n<\/p>\n<p><p>\u5728\u83b7\u53d6\u5230\u9875\u9762\u5185\u5bb9\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528BeautifulSoup\u5e93\u6765\u89e3\u6790HTML\u6587\u6863\uff0c\u5e76\u63d0\u53d6\u6240\u9700\u7684\u6570\u636e\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from bs4 import BeautifulSoup<\/p>\n<h2><strong>\u89e3\u6790\u9875\u9762\u5185\u5bb9<\/strong><\/h2>\n<p>soup = BeautifulSoup(page_content, &#39;html.parser&#39;)<\/p>\n<h2><strong>\u63d0\u53d6\u76ee\u6807\u6570\u636e<\/strong><\/h2>\n<p>items = soup.find_all(&#39;div&#39;, class_=&#39;item&#39;)<\/p>\n<p>for item in items:<\/p>\n<p>    title = item.find(&#39;h2&#39;).text<\/p>\n<p>    link = item.find(&#39;a&#39;)[&#39;href&#39;]<\/p>\n<p>    print(f&#39;Title: {title}, Link: {link}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7BeautifulSoup\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u65b9\u4fbf\u5730\u89e3\u6790HTML\u6587\u6863\uff0c\u67e5\u627e\u7279\u5b9a\u6807\u7b7e\u548c\u5c5e\u6027\uff0c\u5e76\u63d0\u53d6\u6240\u9700\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5904\u7406\u5206\u9875\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u6709\u4e9b\u7f51\u9875\u7684\u6570\u636e\u662f\u901a\u8fc7\u5206\u9875\u52a0\u8f7d\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5206\u6790\u7f51\u9875\u7684\u5206\u9875\u673a\u5236\uff0c\u7f16\u5199\u4ee3\u7801\u904d\u5386\u6240\u6709\u5206\u9875\u6570\u636e\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">page_num = 1<\/p>\n<p>while True:<\/p>\n<p>    api_url = f&#39;https:\/\/example.com\/api\/data?page={page_num}&#39;<\/p>\n<p>    response = requests.get(api_url)<\/p>\n<p>    data = response.json()<\/p>\n<p>    if not data[&#39;results&#39;]:<\/p>\n<p>        break<\/p>\n<p>    for item in data[&#39;results&#39;]:<\/p>\n<p>        print(item)<\/p>\n<p>    page_num += 1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u5faa\u73af\u904d\u5386\u6240\u6709\u5206\u9875\u6570\u636e\uff0c\u76f4\u5230\u6ca1\u6709\u66f4\u591a\u6570\u636e\u4e3a\u6b62\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0cPython\u722c\u866b\u53ef\u4ee5\u901a\u8fc7Selenium\u5e93\u6a21\u62df\u6eda\u52a8\u3001\u5229\u7528\u6d4f\u89c8\u5668\u5f00\u53d1\u8005\u5de5\u5177\u83b7\u53d6\u52a8\u6001\u52a0\u8f7d\u5185\u5bb9\u7684API\u3001\u89e3\u6790\u5206\u9875\u6570\u636e\u7b49\u65b9\u5f0f\u5b9e\u73b0\u9875\u9762\u5230\u5e95\u7aef\u7684\u722c\u53d6\u3002\u4f7f\u7528Selenium\u5e93\u6a21\u62df\u6eda\u52a8\u662f\u6700\u5e38\u7528\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u51e0\u884c\u4ee3\u7801\u5b9e\u73b0\u3002\u540c\u65f6\uff0c\u7ed3\u5408BeautifulSoup\u5e93\u89e3\u6790\u9875\u9762\u5185\u5bb9\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u63d0\u53d6\u6240\u9700\u7684\u6570\u636e\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u63d0\u9ad8\u722c\u53d6\u6548\u7387\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u7528Python\u722c\u866b\u83b7\u53d6\u7f51\u9875\u7684\u5e95\u90e8\u5185\u5bb9\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Python\u722c\u866b\u65f6\uff0c\u60f3\u8981\u83b7\u53d6\u7f51\u9875\u5e95\u90e8\u5185\u5bb9\uff0c\u901a\u5e38\u9700\u8981\u4f7f\u7528\u5e93\u5982BeautifulSoup\u548crequests\u3002\u53ef\u4ee5\u5148\u53d1\u9001\u8bf7\u6c42\u83b7\u53d6\u9875\u9762\u7684HTML\uff0c\u7136\u540e\u901a\u8fc7BeautifulSoup\u89e3\u6790\u8be5HTML\uff0c\u5229\u7528\u9009\u62e9\u5668\u67e5\u627e\u7279\u5b9a\u7684\u5e95\u90e8\u5143\u7d20\u3002\u786e\u4fdd\u5728\u6293\u53d6\u65f6\u9075\u5faarobots.txt\u6587\u4ef6\u7684\u89c4\u5219\uff0c\u4ee5\u907f\u514d\u8fdd\u53cd\u7f51\u7ad9\u7684\u4f7f\u7528\u6761\u6b3e\u3002<\/p>\n<p><strong>\u5728\u722c\u866b\u4e2d\u5982\u4f55\u5904\u7406\u52a8\u6001\u52a0\u8f7d\u7684\u5185\u5bb9\uff1f<\/strong><br \/>\u5f88\u591a\u7f51\u7ad9\u4f7f\u7528JavaScript\u52a8\u6001\u52a0\u8f7d\u5185\u5bb9\uff0c\u8fd9\u610f\u5473\u7740\u521d\u59cbHTML\u4e2d\u4e0d\u4f1a\u5305\u542b\u6240\u6709\u4fe1\u606f\u3002\u53ef\u4ee5\u4f7f\u7528Selenium\u5e93\u6765\u6a21\u62df\u6d4f\u89c8\u5668\u64cd\u4f5c\uff0c\u7b49\u5f85\u9875\u9762\u5b8c\u5168\u52a0\u8f7d\u540e\uff0c\u518d\u63d0\u53d6\u5e95\u90e8\u5185\u5bb9\u3002\u6b64\u5916\uff0c\u5206\u6790\u7f51\u7edc\u8bf7\u6c42\uff0c\u76f4\u63a5\u83b7\u53d6API\u6570\u636e\u4e5f\u662f\u4e00\u79cd\u6709\u6548\u7684\u65b9\u6cd5\u3002<\/p>\n<p><strong>\u9047\u5230\u53cd\u722c\u866b\u673a\u5236\u65f6\u8be5\u5982\u4f55\u5904\u7406\uff1f<\/strong><br \/>\u4e00\u4e9b\u7f51\u7ad9\u53ef\u80fd\u4f1a\u6709\u53cd\u722c\u866b\u63aa\u65bd\uff0c\u4f8b\u5982IP\u5c01\u9501\u6216\u8bf7\u6c42\u9891\u7387\u9650\u5236\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u8bf7\u6c42\u5934\u6a21\u62df\u771f\u5b9e\u7528\u6237\u3001\u4f7f\u7528\u4ee3\u7406IP\u3001\u8c03\u6574\u8bf7\u6c42\u9891\u7387\u7b49\u65b9\u6cd5\u6765\u89c4\u907f\u8fd9\u4e9b\u63aa\u65bd\u3002\u540c\u65f6\uff0c\u4fdd\u6301\u722c\u866b\u7684\u53cb\u597d\u6027\uff0c\u907f\u514d\u5bf9\u7f51\u7ad9\u9020\u6210\u8d1f\u62c5\uff0c\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u722c\u866b\u53ef\u4ee5\u901a\u8fc7JavaScript\u6a21\u62df\u6eda\u52a8\u3001\u4f7f\u7528Selenium\u5e93\u3001\u5229\u7528\u6d4f\u89c8\u5668\u5f00\u53d1\u8005\u5de5\u5177\u83b7\u53d6\u52a8\u6001\u52a0\u8f7d [&hellip;]","protected":false},"author":3,"featured_media":1098297,"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\/1098285"}],"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=1098285"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1098285\/revisions"}],"predecessor-version":[{"id":1098301,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1098285\/revisions\/1098301"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1098297"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1098285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1098285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1098285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}