{"id":1187679,"date":"2025-01-15T20:08:24","date_gmt":"2025-01-15T12:08:24","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1187679.html"},"modified":"2025-01-15T20:08:26","modified_gmt":"2025-01-15T12:08:26","slug":"python%e5%a6%82%e4%bd%95%e8%8e%b7%e5%8f%96%e5%a4%a9%e6%b0%94%e9%a2%84%e6%8a%a5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1187679.html","title":{"rendered":"python\u5982\u4f55\u83b7\u53d6\u5929\u6c14\u9884\u62a5"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25140214\/1ef564b8-a213-4ad8-92f6-8c451a63129f.webp\" alt=\"python\u5982\u4f55\u83b7\u53d6\u5929\u6c14\u9884\u62a5\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u83b7\u53d6\u5929\u6c14\u9884\u62a5\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c<strong>\u4f7f\u7528API\u63a5\u53e3\u83b7\u53d6\u5929\u6c14\u6570\u636e\u3001\u4f7f\u7528\u7f51\u7edc\u722c\u866b\u6280\u672f\u6293\u53d6\u5929\u6c14\u9884\u62a5\u7f51\u9875\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982pyowm\u548cweather-api\u83b7\u53d6\u5929\u6c14\u6570\u636e<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u4f7f\u7528API\u63a5\u53e3\u83b7\u53d6\u5929\u6c14\u6570\u636e<\/strong>\u662f\u4e00\u79cd\u6bd4\u8f83\u53ef\u9760\u548c\u5e38\u7528\u7684\u65b9\u6cd5\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528API\u63a5\u53e3\u83b7\u53d6\u5929\u6c14\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528API\u63a5\u53e3\u83b7\u53d6\u5929\u6c14\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528API\u63a5\u53e3\u83b7\u53d6\u5929\u6c14\u6570\u636e\u662f\u76ee\u524d\u6700\u5e38\u89c1\u548c\u65b9\u4fbf\u7684\u65b9\u6cd5\u3002\u8bb8\u591a\u6c14\u8c61\u670d\u52a1\u516c\u53f8\u63d0\u4f9b\u514d\u8d39\u7684API\u63a5\u53e3\uff0c\u53ef\u4ee5\u901a\u8fc7\u53d1\u9001HTTP\u8bf7\u6c42\u83b7\u53d6\u5929\u6c14\u6570\u636e\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u9009\u62e9\u5929\u6c14API\u670d\u52a1<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u5929\u6c14API\u670d\u52a1\u63d0\u4f9b\u5546\u3002\u5e38\u89c1\u7684\u5929\u6c14API\u670d\u52a1\u63d0\u4f9b\u5546\u6709OpenWeatherMap\u3001WeatherAPI\u3001WeatherStack\u7b49\u3002\u4ee5OpenWeatherMap\u4e3a\u4f8b\uff0c\u53ef\u4ee5\u8bbf\u95ee\u5176\u5b98\u65b9\u7f51\u7ad9\u5e76\u6ce8\u518c\u4e00\u4e2a\u8d26\u53f7\uff0c\u83b7\u53d6API\u5bc6\u94a5\uff08API Key\uff09\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5b89\u88c5\u8bf7\u6c42\u5e93<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4f7f\u7528<code>requests<\/code>\u5e93\u53d1\u9001HTTP\u8bf7\u6c42\u3002\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5requests\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u7f16\u5199\u4ee3\u7801\u83b7\u53d6\u5929\u6c14\u6570\u636e<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4f7f\u7528OpenWeatherMap API\u83b7\u53d6\u5929\u6c14\u6570\u636e\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>def get_weather(city_name, api_key):<\/p>\n<p>    base_url = &quot;http:\/\/api.openweathermap.org\/data\/2.5\/weather?&quot;<\/p>\n<p>    complete_url = base_url + &quot;q=&quot; + city_name + &quot;&amp;appid=&quot; + api_key<\/p>\n<p>    response = requests.get(complete_url)<\/p>\n<p>    data = response.json()<\/p>\n<p>    if data[&quot;cod&quot;] != &quot;404&quot;:<\/p>\n<p>        m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n = data[&quot;main&quot;]<\/p>\n<p>        weather = data[&quot;weather&quot;][0]<\/p>\n<p>        temperature = main[&quot;temp&quot;]<\/p>\n<p>        pressure = main[&quot;pressure&quot;]<\/p>\n<p>        humidity = main[&quot;humidity&quot;]<\/p>\n<p>        weather_description = weather[&quot;description&quot;]<\/p>\n<p>        weather_info = {<\/p>\n<p>            &quot;temperature&quot;: temperature,<\/p>\n<p>            &quot;pressure&quot;: pressure,<\/p>\n<p>            &quot;humidity&quot;: humidity,<\/p>\n<p>            &quot;description&quot;: weather_description<\/p>\n<p>        }<\/p>\n<p>        return weather_info<\/p>\n<p>    else:<\/p>\n<p>        return &quot;City Not Found&quot;<\/p>\n<p>api_key = &quot;your_api_key_here&quot;<\/p>\n<p>city_name = input(&quot;Enter city name: &quot;)<\/p>\n<p>weather_info = get_weather(city_name, api_key)<\/p>\n<p>if weather_info != &quot;City Not Found&quot;:<\/p>\n<p>    print(f&quot;Temperature: {weather_info[&#39;temperature&#39;]} K&quot;)<\/p>\n<p>    print(f&quot;Pressure: {weather_info[&#39;pressure&#39;]} hPa&quot;)<\/p>\n<p>    print(f&quot;Humidity: {weather_info[&#39;humidity&#39;]}%&quot;)<\/p>\n<p>    print(f&quot;Weather Description: {weather_info[&#39;description&#39;]}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(weather_info)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u7f51\u7edc\u722c\u866b\u6280\u672f\u6293\u53d6\u5929\u6c14\u9884\u62a5\u7f51\u9875<\/h3>\n<\/p>\n<p><p>\u7f51\u7edc\u722c\u866b\u6280\u672f\u662f\u4e00\u79cd\u81ea\u52a8\u5316\u7684\u6570\u636e\u6293\u53d6\u6280\u672f\uff0c\u901a\u8fc7\u6a21\u62df\u6d4f\u89c8\u5668\u8bf7\u6c42\u83b7\u53d6\u7f51\u9875\u5185\u5bb9\uff0c\u5e76\u4ece\u4e2d\u63d0\u53d6\u6240\u9700\u4fe1\u606f\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u9009\u62e9\u76ee\u6807\u7f51\u7ad9<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9009\u62e9\u4e00\u4e2a\u63d0\u4f9b\u5929\u6c14\u9884\u62a5\u4fe1\u606f\u7684\u7f51\u7ad9\uff0c\u4f8b\u5982Weather.com\u3001AccuWeather\u7b49\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5b89\u88c5\u76f8\u5173\u5e93<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4f7f\u7528<code>requests<\/code>\u5e93\u53d1\u9001HTTP\u8bf7\u6c42\uff0c\u4f7f\u7528<code>BeautifulSoup<\/code>\u5e93\u89e3\u6790HTML\u5185\u5bb9\u3002\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5\u8fd9\u4e9b\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install requests beautifulsoup4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u7f16\u5199\u4ee3\u7801\u6293\u53d6\u5929\u6c14\u6570\u636e<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u6293\u53d6Weather.com\u5929\u6c14\u6570\u636e\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>from bs4 import BeautifulSoup<\/p>\n<p>def get_weather(city_name):<\/p>\n<p>    base_url = &quot;https:\/\/weather.com\/weather\/today\/l\/&quot;<\/p>\n<p>    response = requests.get(base_url + city_name)<\/p>\n<p>    soup = BeautifulSoup(response.content, &quot;html.parser&quot;)<\/p>\n<p>    location = soup.find(&quot;h1&quot;, class_=&quot;CurrentConditions--location--1Ayv3&quot;).text<\/p>\n<p>    temperature = soup.find(&quot;span&quot;, class_=&quot;CurrentConditions--tempValue--3KcTQ&quot;).text<\/p>\n<p>    description = soup.find(&quot;div&quot;, class_=&quot;CurrentConditions--phraseValue--2xXSr&quot;).text<\/p>\n<p>    weather_info = {<\/p>\n<p>        &quot;location&quot;: location,<\/p>\n<p>        &quot;temperature&quot;: temperature,<\/p>\n<p>        &quot;description&quot;: description<\/p>\n<p>    }<\/p>\n<p>    return weather_info<\/p>\n<p>city_name = &quot;San Francisco, CA&quot;<\/p>\n<p>weather_info = get_weather(city_name)<\/p>\n<p>print(f&quot;Location: {weather_info[&#39;location&#39;]}&quot;)<\/p>\n<p>print(f&quot;Temperature: {weather_info[&#39;temperature&#39;]}&quot;)<\/p>\n<p>print(f&quot;Weather Description: {weather_info[&#39;description&#39;]}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982pyowm\u548cweather-api\u83b7\u53d6\u5929\u6c14\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u662f\u53e6\u4e00\u79cd\u83b7\u53d6\u5929\u6c14\u6570\u636e\u7684\u65b9\u5f0f\uff0c\u8fd9\u4e9b\u5e93\u901a\u5e38\u5c01\u88c5\u4e86API\u8c03\u7528\uff0c\u63d0\u4f9b\u4e86\u66f4\u65b9\u4fbf\u7684\u63a5\u53e3\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5\u8fd9\u4e9b\u5e93\uff0c\u4f8b\u5982\u5b89\u88c5pyowm\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyowm<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u7f16\u5199\u4ee3\u7801\u83b7\u53d6\u5929\u6c14\u6570\u636e<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4f7f\u7528pyowm\u83b7\u53d6\u5929\u6c14\u6570\u636e\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyowm<\/p>\n<p>def get_weather(city_name, api_key):<\/p>\n<p>    owm = pyowm.OWM(api_key)<\/p>\n<p>    observation = owm.weather_at_place(city_name)<\/p>\n<p>    weather = observation.get_weather()<\/p>\n<p>    temperature = weather.get_temperature(&#39;celsius&#39;)[&#39;temp&#39;]<\/p>\n<p>    pressure = weather.get_pressure()[&#39;press&#39;]<\/p>\n<p>    humidity = weather.get_humidity()<\/p>\n<p>    description = weather.get_detailed_status()<\/p>\n<p>    weather_info = {<\/p>\n<p>        &quot;temperature&quot;: temperature,<\/p>\n<p>        &quot;pressure&quot;: pressure,<\/p>\n<p>        &quot;humidity&quot;: humidity,<\/p>\n<p>        &quot;description&quot;: description<\/p>\n<p>    }<\/p>\n<p>    return weather_info<\/p>\n<p>api_key = &quot;your_api_key_here&quot;<\/p>\n<p>city_name = input(&quot;Enter city name: &quot;)<\/p>\n<p>weather_info = get_weather(city_name, api_key)<\/p>\n<p>print(f&quot;Temperature: {weather_info[&#39;temperature&#39;]} \u00b0C&quot;)<\/p>\n<p>print(f&quot;Pressure: {weather_info[&#39;pressure&#39;]} hPa&quot;)<\/p>\n<p>print(f&quot;Humidity: {weather_info[&#39;humidity&#39;]}%&quot;)<\/p>\n<p>print(f&quot;Weather Description: {weather_info[&#39;description&#39;]}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0a\u4ecb\u7ecd\u4e86\u4e09\u79cd\u83b7\u53d6\u5929\u6c14\u9884\u62a5\u6570\u636e\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528API\u63a5\u53e3\u3001\u7f51\u7edc\u722c\u866b\u6280\u672f\u548c\u7b2c\u4e09\u65b9\u5e93\u3002<strong>\u4f7f\u7528API\u63a5\u53e3\u83b7\u53d6\u5929\u6c14\u6570\u636e<\/strong>\u662f\u6700\u5e38\u89c1\u548c\u65b9\u4fbf\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u901a\u8fc7\u53d1\u9001HTTP\u8bf7\u6c42\u83b7\u53d6\u5b9e\u65f6\u5929\u6c14\u6570\u636e\uff1b<strong>\u4f7f\u7528\u7f51\u7edc\u722c\u866b\u6280\u672f\u6293\u53d6\u5929\u6c14\u9884\u62a5\u7f51\u9875<\/strong>\u53ef\u4ee5\u83b7\u53d6\u66f4\u591a\u81ea\u5b9a\u4e49\u4fe1\u606f\uff0c\u4f46\u9700\u8981\u5904\u7406\u7f51\u9875\u7ed3\u6784\u7684\u53d8\u5316\uff1b<strong>\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/strong>\u5219\u63d0\u4f9b\u4e86\u66f4\u65b9\u4fbf\u7684\u63a5\u53e3\uff0c\u7b80\u5316\u4e86API\u8c03\u7528\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u6570\u636e\u51c6\u786e\u6027<\/strong>\uff1a\u9009\u62e9\u53ef\u9760\u7684\u5929\u6c14API\u670d\u52a1\u63d0\u4f9b\u5546\uff0c\u786e\u4fdd\u6570\u636e\u7684\u51c6\u786e\u6027\u548c\u53ca\u65f6\u6027\u3002<\/li>\n<li><strong>\u4f7f\u7528\u89c4\u8303<\/strong>\uff1a\u9075\u5b88API\u670d\u52a1\u63d0\u4f9b\u5546\u7684\u4f7f\u7528\u89c4\u8303\uff0c\u907f\u514d\u9891\u7e41\u8bf7\u6c42\u5bfc\u81f4\u88ab\u5c01\u7981\u3002<\/li>\n<li><strong>\u6570\u636e\u89e3\u6790<\/strong>\uff1a\u6839\u636e\u9700\u6c42\u89e3\u6790\u6240\u83b7\u53d6\u7684\u6570\u636e\uff0c\u63d0\u53d6\u6240\u9700\u7684\u4fe1\u606f\u3002<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u53ef\u4ee5\u5728Python\u4e2d\u65b9\u4fbf\u5730\u83b7\u53d6\u5929\u6c14\u9884\u62a5\u6570\u636e\uff0c\u4e3a\u5f00\u53d1\u5929\u6c14\u76f8\u5173\u7684\u5e94\u7528\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\u4f7f\u7528Python\u83b7\u53d6\u5b9e\u65f6\u5929\u6c14\u6570\u636e\uff1f<\/strong><br \/>\u8981\u83b7\u53d6\u5b9e\u65f6\u5929\u6c14\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684requests\u5e93\u7ed3\u5408\u5929\u6c14API\uff0c\u5982OpenWeatherMap\u6216WeatherAPI\u7b49\u3002\u9996\u5148\u9700\u8981\u5728\u8fd9\u4e9b\u5e73\u53f0\u4e0a\u6ce8\u518c\u83b7\u53d6API\u5bc6\u94a5\uff0c\u7136\u540e\u5229\u7528requests\u5e93\u53d1\u9001HTTP\u8bf7\u6c42\u4ee5\u83b7\u53d6\u5929\u6c14\u4fe1\u606f\u3002\u89e3\u6790\u8fd4\u56de\u7684JSON\u6570\u636e\uff0c\u53ef\u4ee5\u63d0\u53d6\u5f53\u524d\u5929\u6c14\u3001\u6c14\u6e29\u3001\u6e7f\u5ea6\u7b49\u4fe1\u606f\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u83b7\u53d6\u5929\u6c14\u9884\u62a5\u9700\u8981\u54ea\u4e9b\u5e93\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5e38\u7528\u7684\u5e93\u5305\u62ecrequests\u3001json\u548cpandas\u3002requests\u7528\u4e8e\u53d1\u9001\u7f51\u7edc\u8bf7\u6c42\uff0cjson\u7528\u4e8e\u5904\u7406API\u8fd4\u56de\u7684\u6570\u636e\uff0cpandas\u53ef\u4ee5\u5e2e\u52a9\u4f60\u4ee5\u8868\u683c\u5f62\u5f0f\u5904\u7406\u548c\u5c55\u793a\u6570\u636e\u3002\u6b64\u5916\uff0c\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5982BeautifulSoup\u8fd9\u6837\u7684\u5e93\u6765\u6293\u53d6\u5929\u6c14\u7f51\u7ad9\u7684\u5185\u5bb9\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u5929\u6c14API\u7684\u9650\u5236\u548c\u9519\u8bef\uff1f<\/strong><br \/>\u4f7f\u7528\u5929\u6c14API\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u8bf7\u6c42\u9650\u5236\u6216\u9519\u8bef\u4ee3\u7801\u3002\u53ef\u4ee5\u901a\u8fc7\u67e5\u770bAPI\u7684\u6587\u6863\u4e86\u89e3\u76f8\u5173\u9650\u5236\uff0c\u6bd4\u5982\u6bcf\u5206\u949f\u5141\u8bb8\u7684\u8bf7\u6c42\u6b21\u6570\u3002\u5904\u7406\u9519\u8bef\u65f6\uff0c\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u6dfb\u52a0\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u6355\u83b7HTTPError\u6216ConnectionError\uff0c\u5e76\u5728\u7a0b\u5e8f\u4e2d\u8bbe\u7f6e\u91cd\u8bd5\u673a\u5236\u6216\u9002\u5f53\u7684\u9519\u8bef\u63d0\u793a\uff0c\u4ee5\u4fbf\u7528\u6237\u53ca\u65f6\u4e86\u89e3\u60c5\u51b5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u83b7\u53d6\u5929\u6c14\u9884\u62a5\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u4f7f\u7528API\u63a5\u53e3\u83b7\u53d6\u5929\u6c14\u6570\u636e\u3001\u4f7f\u7528\u7f51\u7edc\u722c\u866b\u6280\u672f\u6293\u53d6\u5929\u6c14\u9884\u62a5\u7f51\u9875 [&hellip;]","protected":false},"author":3,"featured_media":1187683,"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\/1187679"}],"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=1187679"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1187679\/revisions"}],"predecessor-version":[{"id":1187686,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1187679\/revisions\/1187686"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1187683"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1187679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1187679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1187679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}