{"id":971666,"date":"2024-12-27T05:37:05","date_gmt":"2024-12-26T21:37:05","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/971666.html"},"modified":"2024-12-27T05:37:08","modified_gmt":"2024-12-26T21:37:08","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e6%90%9c%e7%b4%a2%e7%94%b5%e5%bd%b1","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/971666.html","title":{"rendered":"\u5982\u4f55\u7528python\u641c\u7d22\u7535\u5f71"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24194701\/07f4a82f-de71-40bf-b74e-058ca472b5ce.webp\" alt=\"\u5982\u4f55\u7528python\u641c\u7d22\u7535\u5f71\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u641c\u7d22\u7535\u5f71\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u7535\u5f71\u6570\u636e\u5e93API\u3001\u5229\u7528\u7f51\u7edc\u722c\u866b\u3001\u4f7f\u7528Python\u5e93\u8fdb\u884c\u6570\u636e\u5206\u6790<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u7535\u5f71\u6570\u636e\u5e93API\u662f\u4e00\u79cd\u9ad8\u6548\u4e14\u7b80\u4fbf\u7684\u65b9\u6cd5\u3002\u901a\u8fc7API\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u7535\u5f71\u6570\u636e\u5e93\uff0c\u83b7\u53d6\u8be6\u7ec6\u7684\u7535\u5f71\u4fe1\u606f\uff0c\u5305\u62ec\u7535\u5f71\u540d\u79f0\u3001\u5bfc\u6f14\u3001\u6f14\u5458\u3001\u4e0a\u6620\u65e5\u671f\u7b49\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u8282\u7701\u4e86\u65f6\u95f4\uff0c\u8fd8\u80fd\u786e\u4fdd\u6570\u636e\u7684\u51c6\u786e\u6027\u548c\u5408\u6cd5\u6027\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u7535\u5f71\u6570\u636e\u5e93API\u8fdb\u884c\u7535\u5f71\u641c\u7d22\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u7535\u5f71\u6570\u636e\u5e93API<\/p>\n<\/p>\n<ol>\n<li><strong>\u9009\u62e9\u5408\u9002\u7684API<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u4f7f\u7528API\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684\u7535\u5f71\u6570\u636e\u5e93API\u3002\u76ee\u524d\uff0c\u8f83\u4e3a\u6d41\u884c\u7684API\u6709IMDb API\u3001TMDb API\uff08The Movie Database\uff09\u548cOMDb API\uff08Open Movie Database\uff09\u3002\u8fd9\u4e9bAPI\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u4f8b\u5982TMDb API\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7535\u5f71\u4fe1\u606f\u548c\u9ad8\u8d28\u91cf\u7684\u6d77\u62a5\u56fe\u7247\uff0c\u800cOMDb API\u5219\u4ee5\u5176\u7b80\u5355\u6613\u7528\u7684\u7279\u70b9\u53d7\u5230\u6b22\u8fce\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6ce8\u518c\u5e76\u83b7\u53d6API\u5bc6\u94a5<\/strong><\/li>\n<\/ol>\n<p><p>\u4e00\u65e6\u9009\u5b9a\u4e86API\uff0c\u5c31\u9700\u8981\u5728\u5bf9\u5e94\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0a\u6ce8\u518c\u8d26\u6237\u5e76\u7533\u8bf7API\u5bc6\u94a5\u3002\u8fd9\u4e2a\u5bc6\u94a5\u7528\u4e8e\u9a8c\u8bc1\u8bf7\u6c42\u8005\u7684\u8eab\u4efd\uff0c\u786e\u4fdd\u6570\u636e\u7684\u5b89\u5168\u6027\u3002\u901a\u5e38\uff0c\u6ce8\u518c\u8fc7\u7a0b\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u63d0\u4f9b\u57fa\u672c\u7684\u4e2a\u4eba\u4fe1\u606f\u5373\u53ef\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u5b89\u88c5Python\u5e93<\/strong><\/li>\n<\/ol>\n<p><p>\u4e3a\u4e86\u65b9\u4fbf\u5730\u4e0eAPI\u4ea4\u4e92\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u7684requests\u5e93\u3002\u8be5\u5e93\u5141\u8bb8\u5f00\u53d1\u8005\u901a\u8fc7HTTP\u8bf7\u6c42\u4eceAPI\u83b7\u53d6\u6570\u636e\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\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<ol start=\"4\">\n<li><strong>\u7f16\u5199\u641c\u7d22\u7535\u5f71\u7684\u4ee3\u7801<\/strong><\/li>\n<\/ol>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528TMDb API\u641c\u7d22\u7535\u5f71\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>def search_movie(movie_name):<\/p>\n<p>    api_key = &#39;your_api_key&#39;  # \u8bf7\u66ff\u6362\u4e3a\u60a8\u7684API\u5bc6\u94a5<\/p>\n<p>    url = f&#39;https:\/\/api.themoviedb.org\/3\/search\/movie?api_key={api_key}&amp;query={movie_name}&#39;<\/p>\n<p>    response = requests.get(url)<\/p>\n<p>    if response.status_code == 200:<\/p>\n<p>        data = response.json()<\/p>\n<p>        results = data.get(&#39;results&#39;, [])<\/p>\n<p>        for movie in results:<\/p>\n<p>            print(f&quot;Title: {movie.get(&#39;title&#39;)}, Release Date: {movie.get(&#39;release_date&#39;)}&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;Error in fetching data&quot;)<\/p>\n<p>search_movie(&#39;Inception&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>search_movie<\/code>\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u7535\u5f71\u540d\u79f0\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u6784\u5efa\u4e00\u4e2a\u8bf7\u6c42URL\u3002\u901a\u8fc7requests\u5e93\u53d1\u9001GET\u8bf7\u6c42\u540e\uff0c\u8fd4\u56de\u7684\u6570\u636e\u4ee5JSON\u683c\u5f0f\u89e3\u6790\uff0c\u5e76\u63d0\u53d6\u51fa\u7535\u5f71\u7684\u6807\u9898\u548c\u4e0a\u6620\u65e5\u671f\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5229\u7528\u7f51\u7edc\u722c\u866b<\/p>\n<\/p>\n<ol>\n<li><strong>\u9009\u62e9\u76ee\u6807\u7f51\u7ad9<\/strong><\/li>\n<\/ol>\n<p><p>\u9664\u4e86\u4f7f\u7528API\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\u722c\u866b\u7684\u65b9\u5f0f\u83b7\u53d6\u7535\u5f71\u4fe1\u606f\u3002\u9009\u62e9\u4e00\u4e2a\u63d0\u4f9b\u4e30\u5bcc\u7535\u5f71\u4fe1\u606f\u7684\u7f51\u7ad9\uff0c\u6bd4\u5982IMDb\u6216\u8c46\u74e3\u7535\u5f71\uff0c\u662f\u8fdb\u884c\u7f51\u7edc\u722c\u866b\u7684\u7b2c\u4e00\u6b65\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u89e3\u6790\u7f51\u9875\u7ed3\u6784<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5f00\u59cb\u7f16\u5199\u722c\u866b\u4e4b\u524d\uff0c\u4e86\u89e3\u76ee\u6807\u7f51\u7ad9\u7684HTML\u7ed3\u6784\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u53ef\u4ee5\u4f7f\u7528\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u8005\u5de5\u5177\uff08\u901a\u5e38\u6309F12\u952e\uff09\u67e5\u770b\u7f51\u9875\u7684DOM\u7ed3\u6784\uff0c\u786e\u5b9a\u9700\u8981\u6293\u53d6\u7684\u4fe1\u606f\u6240\u5728\u7684\u6807\u7b7e\u548c\u7c7b\u540d\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u5b89\u88c5Python\u5e93<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528\u7f51\u7edc\u722c\u866b\u65f6\uff0c\u5e38\u7528\u7684Python\u5e93\u6709BeautifulSoup\u548cScrapy\u3002BeautifulSoup\u9002\u5408\u521d\u5b66\u8005\uff0c\u5b83\u7684\u5b66\u4e60\u66f2\u7ebf\u8f83\u4e3a\u5e73\u7f13\uff0c\u800cScrapy\u529f\u80fd\u5f3a\u5927\uff0c\u9002\u5408\u5904\u7406\u590d\u6742\u7684\u722c\u866b\u9879\u76ee\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5BeautifulSoup\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install beautifulsoup4<\/p>\n<p>pip install requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u7f16\u5199\u722c\u866b\u4ee3\u7801<\/strong><\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528BeautifulSoup\u4eceIMDb\u641c\u7d22\u7535\u5f71\u7684\u7b80\u5355\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>from bs4 import BeautifulSoup<\/p>\n<p>def search_movie(movie_name):<\/p>\n<p>    url = f&#39;https:\/\/www.imdb.com\/find?q={movie_name}&amp;s=tt&amp;ttype=ft&amp;ref_=fn_ft&#39;<\/p>\n<p>    response = requests.get(url)<\/p>\n<p>    soup = BeautifulSoup(response.text, &#39;html.parser&#39;)<\/p>\n<p>    results = soup.find_all(&#39;td&#39;, class_=&#39;result_text&#39;)<\/p>\n<p>    for result in results:<\/p>\n<p>        title = result.get_text()<\/p>\n<p>        print(f&quot;Title: {title}&quot;)<\/p>\n<p>search_movie(&#39;Inception&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u6784\u5efa\u4e86\u4e00\u4e2a\u641c\u7d22URL\uff0c\u4f7f\u7528requests\u5e93\u83b7\u53d6\u7f51\u9875\u5185\u5bb9\uff0c\u5e76\u5229\u7528BeautifulSoup\u89e3\u6790HTML\u6587\u6863\u3002\u901a\u8fc7\u67e5\u627e\u6307\u5b9a\u7684\u6807\u7b7e\u548c\u7c7b\u540d\uff0c\u6211\u4eec\u53ef\u4ee5\u63d0\u53d6\u51fa\u7535\u5f71\u7684\u6807\u9898\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528Python\u5e93\u8fdb\u884c\u6570\u636e\u5206\u6790<\/p>\n<\/p>\n<ol>\n<li><strong>\u9009\u62e9\u6570\u636e\u6e90<\/strong><\/li>\n<\/ol>\n<p><p>\u9664\u4e86\u4f7f\u7528API\u548c\u722c\u866b\uff0c\u5f00\u53d1\u8005\u8fd8\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u5f00\u6e90\u6570\u636e\u96c6\u8fdb\u884c\u7535\u5f71\u641c\u7d22\u3002\u8bb8\u591a\u7f51\u7ad9\u548c\u7ec4\u7ec7\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7535\u5f71\u6570\u636e\u96c6\uff0c\u8fd9\u4e9b\u6570\u636e\u96c6\u901a\u5e38\u4ee5CSV\u6216JSON\u683c\u5f0f\u5b58\u50a8\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u8fdb\u884c\u5206\u6790\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5b89\u88c5Python\u5e93<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528Pandas\u5e93\u53ef\u4ee5\u65b9\u4fbf\u5730\u5bf9\u6570\u636e\u8fdb\u884c\u5206\u6790\u548c\u5904\u7406\u3002Pandas\u662fPython\u4e2d\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u5e93\uff0c\u9002\u5408\u5904\u7406\u7ed3\u6784\u5316\u6570\u636e\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Pandas\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pandas<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u52a0\u8f7d\u548c\u5904\u7406\u6570\u636e<\/strong><\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Pandas\u52a0\u8f7d\u548c\u641c\u7d22\u7535\u5f71\u6570\u636e\u96c6\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>def search_movie(movie_name, data_file):<\/p>\n<p>    df = pd.read_csv(data_file)<\/p>\n<p>    results = df[df[&#39;title&#39;].str.cont<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns(movie_name, case=False, na=False)]<\/p>\n<p>    for index, row in results.iterrows():<\/p>\n<p>        print(f&quot;Title: {row[&#39;title&#39;]}, Year: {row[&#39;year&#39;]}&quot;)<\/p>\n<p>search_movie(&#39;Inception&#39;, &#39;movies.csv&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u52a0\u8f7d\u4e86\u4e00\u4e2aCSV\u683c\u5f0f\u7684\u7535\u5f71\u6570\u636e\u96c6\uff0c\u4f7f\u7528Pandas\u7684<code>read_csv<\/code>\u51fd\u6570\u8bfb\u53d6\u6570\u636e\u3002\u7136\u540e\uff0c\u901a\u8fc7\u5b57\u7b26\u4e32\u5339\u914d\u51fd\u6570<code>str.contains<\/code>\u641c\u7d22\u7535\u5f71\u540d\u79f0\uff0c\u5e76\u6253\u5370\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u7535\u5f71\u6807\u9898\u548c\u5e74\u4efd\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u641c\u7d22\u7535\u5f71\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528API\u3001\u7f51\u7edc\u722c\u866b\u548c\u6570\u636e\u5206\u6790\u3002<strong>API\u65b9\u6cd5\u7b80\u5355\u9ad8\u6548<\/strong>\uff0c\u9002\u5408\u9700\u8981\u5b9e\u65f6\u6570\u636e\u7684\u573a\u666f\uff1b<strong>\u7f51\u7edc\u722c\u866b\u65b9\u6cd5\u7075\u6d3b<\/strong>\uff0c\u9002\u5408\u7279\u5b9a\u7f51\u7ad9\u7684\u6570\u636e\u63d0\u53d6\uff1b<strong>\u6570\u636e\u5206\u6790\u65b9\u6cd5\u5f3a\u5927<\/strong>\uff0c\u9002\u5408\u6279\u91cf\u5904\u7406\u548c\u5206\u6790\u5df2\u6709\u6570\u636e\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u6570\u636e\u6765\u6e90\u8fdb\u884c\u8c03\u6574\u3002\u65e0\u8bba\u4f7f\u7528\u54ea\u79cd\u65b9\u6cd5\uff0cPython\u4e30\u5bcc\u7684\u5e93\u548c\u5f3a\u5927\u7684\u793e\u533a\u652f\u6301\u90fd\u80fd\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u5b9e\u73b0\u76ee\u6807\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u641c\u7d22\u7279\u5b9a\u7c7b\u578b\u7684\u7535\u5f71\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7b2c\u4e09\u65b9API\u5982TMDb\uff08The Movie Database\uff09\u6765\u641c\u7d22\u7279\u5b9a\u7c7b\u578b\u7684\u7535\u5f71\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u6ce8\u518c\u4e00\u4e2a\u8d26\u53f7\u5e76\u83b7\u53d6API\u5bc6\u94a5\u3002\u7136\u540e\uff0c\u5229\u7528Python\u7684<code>requests<\/code>\u5e93\u53d1\u9001HTTP\u8bf7\u6c42\uff0c\u83b7\u53d6\u7535\u5f71\u6570\u636e\u3002\u901a\u8fc7\u89e3\u6790\u8fd4\u56de\u7684JSON\u6570\u636e\uff0c\u4f60\u53ef\u4ee5\u7b5b\u9009\u51fa\u60f3\u8981\u7684\u7535\u5f71\u7c7b\u578b\u3002<\/p>\n<p><strong>\u6709\u54ea\u4e9bPython\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u8fdb\u884c\u7535\u5f71\u641c\u7d22\uff1f<\/strong><br \/>\u5e38\u7528\u7684Python\u5e93\u5305\u62ec<code>requests<\/code>\u548c<code>BeautifulSoup<\/code>\u3002<code>requests<\/code>\u7528\u4e8e\u53d1\u9001\u7f51\u7edc\u8bf7\u6c42\u83b7\u53d6\u6570\u636e\uff0c\u800c<code>BeautifulSoup<\/code>\u5219\u53ef\u4ee5\u5e2e\u52a9\u89e3\u6790\u548c\u63d0\u53d6HTML\u6216XML\u6587\u4ef6\u4e2d\u7684\u4fe1\u606f\u3002\u8fd8\u6709<code>pandas<\/code>\u5e93\u53ef\u4ee5\u5c06\u83b7\u53d6\u7684\u6570\u636e\u6574\u7406\u6210\u8868\u683c\uff0c\u65b9\u4fbf\u8fdb\u884c\u540e\u7eed\u5206\u6790\u3002<\/p>\n<p><strong>\u80fd\u5426\u4f7f\u7528Python\u81ea\u52a8\u5316\u641c\u7d22\u548c\u63a8\u8350\u7535\u5f71\uff1f<\/strong><br \/>\u786e\u5b9e\u53ef\u4ee5\u3002\u901a\u8fc7\u7ed3\u5408API\u4e0e<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u7b97\u6cd5\uff0c\u4f60\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a\u81ea\u52a8\u5316\u7684\u7535\u5f71\u63a8\u8350\u7cfb\u7edf\u3002\u5229\u7528\u7528\u6237\u7684\u89c2\u770b\u5386\u53f2\u548c\u8bc4\u5206\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528\u534f\u540c\u8fc7\u6ee4\u6216\u5185\u5bb9\u63a8\u8350\u7b97\u6cd5\u6765\u9884\u6d4b\u7528\u6237\u53ef\u80fd\u559c\u6b22\u7684\u7535\u5f71\uff0c\u5e76\u901a\u8fc7Python\u81ea\u52a8\u5316\u641c\u7d22\u548c\u63a8\u8350\u8fd9\u4e9b\u7535\u5f71\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u641c\u7d22\u7535\u5f71\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u7535\u5f71\u6570\u636e\u5e93API\u3001\u5229\u7528\u7f51\u7edc\u722c\u866b\u3001\u4f7f\u7528Python\u5e93\u8fdb\u884c\u6570\u636e\u5206\u6790\u3002\u5176\u4e2d\uff0c\u4f7f [&hellip;]","protected":false},"author":3,"featured_media":971671,"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\/971666"}],"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=971666"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/971666\/revisions"}],"predecessor-version":[{"id":971674,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/971666\/revisions\/971674"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/971671"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=971666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=971666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=971666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}