{"id":1087481,"date":"2025-01-08T13:35:30","date_gmt":"2025-01-08T05:35:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1087481.html"},"modified":"2025-01-08T13:35:33","modified_gmt":"2025-01-08T05:35:33","slug":"python%e5%a6%82%e4%bd%95%e5%86%99%e6%9c%ba%e5%99%a8%e4%ba%ba%e7%a8%8b%e5%ba%8f-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1087481.html","title":{"rendered":"python\u5982\u4f55\u5199\u673a\u5668\u4eba\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200409\/6bbb0f77-b7fe-4a8c-9305-75fc91d20107.webp\" alt=\"python\u5982\u4f55\u5199\u673a\u5668\u4eba\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>Python\u5199\u673a\u5668\u4eba\u7a0b\u5e8f\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528API\u3001\u81ea\u52a8\u5316\u6846\u67b6\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u7b97\u6cd5\u7b49<\/strong>\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u8fd9\u51e0\u79cd\u65b9\u6cd5\u6765\u7f16\u5199\u4e00\u4e2a\u529f\u80fd\u9f50\u5168\u7684\u673a\u5668\u4eba\u7a0b\u5e8f\u3002\u6211\u4eec\u4f1a\u9996\u5148\u4ecb\u7ecd\u57fa\u7840\u6982\u5ff5\u548c\u5de5\u5177\uff0c\u7136\u540e\u9010\u6b65\u6df1\u5165\u63a2\u8ba8\u5b9e\u73b0\u8fc7\u7a0b\uff0c\u6700\u540e\u7ed9\u51fa\u4e00\u4e9b\u5b9e\u6218\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528API<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528API\u662f\u5f00\u53d1\u673a\u5668\u4eba\u7a0b\u5e8f\u7684\u4e00\u4e2a\u5e38\u89c1\u65b9\u5f0f\uff0c\u7279\u522b\u662f\u5728\u804a\u5929\u673a\u5668\u4eba\u548c\u793e\u4ea4\u5a92\u4f53\u673a\u5668\u4eba\u65b9\u9762\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u9009\u62e9\u5408\u9002\u7684API<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u9002\u5408\u4f60\u7684\u9879\u76ee\u9700\u6c42\u7684API\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u60f3\u521b\u5efa\u4e00\u4e2a\u804a\u5929\u673a\u5668\u4eba\uff0c\u53ef\u4ee5\u4f7f\u7528Open<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>\u7684GPT-3 API\u6216Google\u7684Dialogflow\u3002\u5982\u679c\u4f60\u60f3\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u793e\u4ea4\u5a92\u4f53\u7684\u673a\u5668\u4eba\uff0c\u53ef\u4ee5\u4f7f\u7528Twitter API\u6216Facebook Graph API\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u5e93<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528Python\u5f00\u53d1\u673a\u5668\u4eba\u7a0b\u5e8f\uff0c\u901a\u5e38\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u3002\u4ee5OpenAI\u7684GPT-3\u4e3a\u4f8b\uff0c\u4f60\u9700\u8981\u5b89\u88c5<code>openai<\/code>\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install openai<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u7f16\u5199\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528OpenAI\u7684GPT-3 API\u7f16\u5199\u7684\u7b80\u5355\u804a\u5929\u673a\u5668\u4eba\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import openai<\/p>\n<h2><strong>\u8bbe\u7f6eAPI\u5bc6\u94a5<\/strong><\/h2>\n<p>openai.api_key = &#39;your-api-key&#39;<\/p>\n<p>def chatbot(prompt):<\/p>\n<p>    response = openai.Completion.create(<\/p>\n<p>      engine=&quot;davinci&quot;,<\/p>\n<p>      prompt=prompt,<\/p>\n<p>      max_tokens=150<\/p>\n<p>    )<\/p>\n<p>    return response.choices[0].text.strip()<\/p>\n<h2><strong>\u8fdb\u884c\u5bf9\u8bdd<\/strong><\/h2>\n<p>while True:<\/p>\n<p>    user_input = input(&quot;You: &quot;)<\/p>\n<p>    if user_input.lower() in [&#39;exit&#39;, &#39;quit&#39;]:<\/p>\n<p>        break<\/p>\n<p>    bot_response = chatbot(user_input)<\/p>\n<p>    print(f&quot;Bot: {bot_response}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u8c03\u7528<code>openai.Completion.create<\/code>\u65b9\u6cd5\u6765\u751f\u6210\u673a\u5668\u4eba\u7684\u54cd\u5e94\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u81ea\u52a8\u5316\u6846\u67b6<\/h3>\n<\/p>\n<p><p>\u81ea\u52a8\u5316\u6846\u67b6\u5982Selenium\u3001BeautifulSoup\u7b49\u53ef\u4ee5\u7528\u4e8e\u5f00\u53d1\u7f51\u9875\u673a\u5668\u4eba\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u5e93<\/h4>\n<\/p>\n<p><p>\u4ee5Selenium\u4e3a\u4f8b\uff0c\u4f60\u9700\u8981\u5b89\u88c5<code>selenium<\/code>\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>\u8fd8\u9700\u8981\u4e0b\u8f7d\u5408\u9002\u7684WebDriver\uff0c\u4f8b\u5982ChromeDriver\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u4e0b\u8f7d\u5e76\u89e3\u538bChromeDriver<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u7f16\u5199\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Selenium\u7f16\u5199\u7684\u7f51\u9875\u673a\u5668\u4eba\u793a\u4f8b\uff0c\u5b83\u53ef\u4ee5\u81ea\u52a8\u767b\u5f55\u5230\u4e00\u4e2a\u7f51\u7ad9\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<h2><strong>\u8bbe\u7f6eWebDriver<\/strong><\/h2>\n<p>driver = webdriver.Chrome(executable_path=&#39;\/path\/to\/chromedriver&#39;)<\/p>\n<h2><strong>\u6253\u5f00\u7f51\u7ad9<\/strong><\/h2>\n<p>driver.get(&quot;https:\/\/www.example.com&quot;)<\/p>\n<h2><strong>\u627e\u5230\u5e76\u586b\u5199\u8868\u5355<\/strong><\/h2>\n<p>username = driver.find_element_by_name(&quot;username&quot;)<\/p>\n<p>password = driver.find_element_by_name(&quot;password&quot;)<\/p>\n<p>username.send_keys(&quot;your_username&quot;)<\/p>\n<p>password.send_keys(&quot;your_password&quot;)<\/p>\n<p>password.send_keys(Keys.RETURN)<\/p>\n<h2><strong>\u7b49\u5f85\u9875\u9762\u52a0\u8f7d<\/strong><\/h2>\n<p>driver.implicitly_wait(10)<\/p>\n<h2><strong>\u6267\u884c\u5176\u4ed6\u64cd\u4f5c<\/strong><\/h2>\n<h2><strong>...<\/strong><\/h2>\n<h2><strong>\u5173\u95ed\u6d4f\u89c8\u5668<\/strong><\/h2>\n<p>driver.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u673a\u5668\u5b66\u4e60\u7b97\u6cd5<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u53ef\u4ee5\u8ba9\u4f60\u7684\u673a\u5668\u4eba\u66f4\u667a\u80fd\uff0c\u5c24\u5176\u662f\u5728\u56fe\u50cf\u8bc6\u522b\u3001\u81ea\u7136\u8bed\u8a00\u5904\u7406\u7b49\u9886\u57df\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u9009\u62e9\u5408\u9002\u7684\u673a\u5668\u5b66\u4e60\u6846\u67b6<\/h4>\n<\/p>\n<p><p>\u5e38\u7528\u7684\u673a\u5668\u5b66\u4e60\u6846\u67b6\u5305\u62ecTensorFlow\u3001PyTorch\u3001scikit-learn\u7b49\u3002\u9009\u62e9\u4e00\u4e2a\u9002\u5408\u4f60\u7684\u9879\u76ee\u9700\u6c42\u7684\u6846\u67b6\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u5e93<\/h4>\n<\/p>\n<p><p>\u4ee5TensorFlow\u4e3a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install tensorflow<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u7f16\u5199\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528TensorFlow\u7f16\u5199\u7684\u7b80\u5355\u56fe\u50cf\u5206\u7c7b\u673a\u5668\u4eba\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tensorflow as tf<\/p>\n<p>from tensorflow.keras.preprocessing.image import ImageDataGenerator<\/p>\n<p>from tensorflow.keras.models import Sequential<\/p>\n<p>from tensorflow.keras.layers import Dense, Conv2D, MaxPooling2D, Flatten<\/p>\n<h2><strong>\u6570\u636e\u9884\u5904\u7406<\/strong><\/h2>\n<p>datagen = ImageDataGenerator(rescale=1.\/255, validation_split=0.2)<\/p>\n<p>train_data = datagen.flow_from_directory(<\/p>\n<p>    &#39;path\/to\/dataset&#39;,<\/p>\n<p>    target_size=(150, 150),<\/p>\n<p>    batch_size=32,<\/p>\n<p>    class_mode=&#39;binary&#39;,<\/p>\n<p>    subset=&#39;training&#39;<\/p>\n<p>)<\/p>\n<p>validation_data = datagen.flow_from_directory(<\/p>\n<p>    &#39;path\/to\/dataset&#39;,<\/p>\n<p>    target_size=(150, 150),<\/p>\n<p>    batch_size=32,<\/p>\n<p>    class_mode=&#39;binary&#39;,<\/p>\n<p>    subset=&#39;validation&#39;<\/p>\n<p>)<\/p>\n<h2><strong>\u6784\u5efa\u6a21\u578b<\/strong><\/h2>\n<p>model = Sequential([<\/p>\n<p>    Conv2D(32, (3, 3), activation=&#39;relu&#39;, input_shape=(150, 150, 3)),<\/p>\n<p>    MaxPooling2D((2, 2)),<\/p>\n<p>    Flatten(),<\/p>\n<p>    Dense(128, activation=&#39;relu&#39;),<\/p>\n<p>    Dense(1, activation=&#39;sigmoid&#39;)<\/p>\n<p>])<\/p>\n<h2><strong>\u7f16\u8bd1\u6a21\u578b<\/strong><\/h2>\n<p>model.compile(optimizer=&#39;adam&#39;, loss=&#39;binary_crossentropy&#39;, metrics=[&#39;accuracy&#39;])<\/p>\n<h2><strong>\u8bad\u7ec3\u6a21\u578b<\/strong><\/h2>\n<p>model.fit(train_data, epochs=10, validation_data=validation_data)<\/p>\n<h2><strong>\u4fdd\u5b58\u6a21\u578b<\/strong><\/h2>\n<p>model.save(&#39;path\/to\/save\/model&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5b9e\u6218\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5<\/h3>\n<\/p>\n<p><h4>1\u3001\u804a\u5929\u673a\u5668\u4eba<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u6574\u5408\u591a\u4e2aAPI\u548c\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6280\u672f\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u804a\u5929\u673a\u5668\u4eba\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528OpenAI\u7684GPT-3\u548cDialogflow\u6765\u5904\u7406\u590d\u6742\u7684\u5bf9\u8bdd\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u793e\u4ea4\u5a92\u4f53\u673a\u5668\u4eba<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528Twitter API\u6216Facebook Graph API\u53ef\u4ee5\u5f00\u53d1\u81ea\u52a8\u53d1\u5e03\u548c\u56de\u590d\u7684\u673a\u5668\u4eba\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u81ea\u52a8\u56de\u590d\u7528\u6237\u6d88\u606f\u7684Twitter\u673a\u5668\u4eba\uff0c\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7ba1\u7406\u793e\u4ea4\u5a92\u4f53\u8d26\u6237\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u7f51\u9875\u81ea\u52a8\u5316<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528Selenium\u7b49\u81ea\u52a8\u5316\u6846\u67b6\u53ef\u4ee5\u5f00\u53d1\u81ea\u52a8\u586b\u5199\u8868\u5355\u3001\u6570\u636e\u6293\u53d6\u7b49\u529f\u80fd\u7684\u673a\u5668\u4eba\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u81ea\u52a8\u6293\u53d6\u5546\u54c1\u4fe1\u606f\u7684\u673a\u5668\u4eba\uff0c\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7ba1\u7406\u7535\u5b50\u5546\u52a1\u5e73\u53f0\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5de5\u5177\u548c\u5e93\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u8f7b\u677e\u5f00\u53d1\u5404\u79cd\u7c7b\u578b\u7684\u673a\u5668\u4eba\u7a0b\u5e8f\u3002\u65e0\u8bba\u662f\u4f7f\u7528API\u3001\u81ea\u52a8\u5316\u6846\u67b6\u8fd8\u662f\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\uff0c\u4f60\u90fd\u53ef\u4ee5\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u6ce8\u610f\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u53ef\u6269\u5c55\u6027\uff0c\u9075\u5faa\u6700\u4f73\u5b9e\u8df5\uff0c\u8fd9\u6837\u53ef\u4ee5\u4f7f\u4f60\u7684\u673a\u5668\u4eba\u7a0b\u5e8f\u66f4\u52a0\u9ad8\u6548\u548c\u7a33\u5b9a\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5f00\u59cb\u4f7f\u7528Python\u7f16\u5199\u673a\u5668\u4eba\u7a0b\u5e8f\uff1f<\/strong><br \/>\u8981\u5f00\u59cb\u7f16\u5199\u673a\u5668\u4eba\u7a0b\u5e8f\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u73af\u5883\u3002\u63a5\u4e0b\u6765\uff0c\u9009\u62e9\u4e00\u4e2a\u9002\u5408\u7684\u5f00\u53d1\u73af\u5883\uff0c\u6bd4\u5982PyCharm\u6216VSCode\u3002\u53ef\u4ee5\u4ece\u7b80\u5355\u7684\u9879\u76ee\u5165\u624b\uff0c\u6bd4\u5982\u7f16\u5199\u4e00\u4e2a\u81ea\u52a8\u56de\u590d\u7684\u804a\u5929\u673a\u5668\u4eba\uff0c\u9010\u6b65\u4e86\u89e3Python\u4e2d\u7684\u7f51\u7edc\u8bf7\u6c42\u3001\u6570\u636e\u5904\u7406\u548cAPI\u4f7f\u7528\u7b49\u57fa\u7840\u77e5\u8bc6\u3002<\/p>\n<p><strong>Python\u7f16\u5199\u673a\u5668\u4eba\u7a0b\u5e8f\u9700\u8981\u54ea\u4e9b\u5e93\u548c\u5de5\u5177\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u7f16\u5199\u673a\u5668\u4eba\u7a0b\u5e8f\u5e38\u7528\u7684\u5e93\u5305\u62ec<code>requests<\/code>\uff08\u7528\u4e8e\u5904\u7406HTTP\u8bf7\u6c42\uff09\u3001<code>BeautifulSoup<\/code>\uff08\u7528\u4e8e\u7f51\u9875\u6293\u53d6\uff09\u3001<code>pandas<\/code>\uff08\u7528\u4e8e\u6570\u636e\u5904\u7406\uff09\u548c<code>TensorFlow<\/code>\u6216<code>PyTorch<\/code>\uff08\u7528\u4e8e\u673a\u5668\u5b66\u4e60\uff09\u3002\u6b64\u5916\uff0c\u82e5\u8981\u521b\u5efa\u804a\u5929\u673a\u5668\u4eba\uff0c\u53ef\u4ee5\u4f7f\u7528<code>ChatterBot<\/code>\u6216<code>NLTK<\/code>\u7b49\u81ea\u7136\u8bed\u8a00\u5904\u7406\u5de5\u5177\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u8bd5\u548c\u6d4b\u8bd5\u6211\u7684Python\u673a\u5668\u4eba\u7a0b\u5e8f\uff1f<\/strong><br \/>\u8c03\u8bd5\u548c\u6d4b\u8bd5Python\u673a\u5668\u4eba\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fdb\u884c\u3002\u4f7f\u7528Python\u5185\u7f6e\u7684<code>pdb<\/code>\u6a21\u5757\u53ef\u4ee5\u9010\u6b65\u8c03\u8bd5\u4ee3\u7801\uff0c\u4e86\u89e3\u7a0b\u5e8f\u7684\u8fd0\u884c\u60c5\u51b5\u3002\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\u4e5f\u662f\u4e00\u4e2a\u597d\u65b9\u6cd5\uff0c\u5229\u7528<code>unittest<\/code>\u6216<code>pytest<\/code>\u5e93\uff0c\u53ef\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u7684\u5404\u4e2a\u6a21\u5757\u6b63\u5e38\u8fd0\u884c\u3002\u5b9a\u671f\u8fdb\u884c<a href=\"https:\/\/docs.pingcode.com\/code-review\" target=\"_blank\">\u4ee3\u7801\u5ba1\u67e5<\/a>\u548c\u91cd\u6784\u80fd\u591f\u63d0\u5347\u4ee3\u7801\u8d28\u91cf\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5199\u673a\u5668\u4eba\u7a0b\u5e8f\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528API\u3001\u81ea\u52a8\u5316\u6846\u67b6\u3001\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u7b49\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u8fd9\u51e0\u79cd\u65b9\u6cd5\u6765\u7f16 [&hellip;]","protected":false},"author":3,"featured_media":1087491,"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\/1087481"}],"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=1087481"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1087481\/revisions"}],"predecessor-version":[{"id":1087493,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1087481\/revisions\/1087493"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1087491"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1087481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1087481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1087481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}