{"id":986659,"date":"2024-12-27T07:46:53","date_gmt":"2024-12-26T23:46:53","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/986659.html"},"modified":"2024-12-27T07:46:55","modified_gmt":"2024-12-26T23:46:55","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e8%af%bb%e5%8f%96ppt","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/986659.html","title":{"rendered":"\u5982\u4f55\u7528python\u8bfb\u53d6PPT"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25063137\/1bcbef5c-fca1-4abe-9848-e5bdd1fb326b.webp\" alt=\"\u5982\u4f55\u7528python\u8bfb\u53d6PPT\" \/><\/p>\n<p><p> <strong>\u8981\u7528Python\u8bfb\u53d6PPT\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528python-pptx\u5e93\u3001\u901a\u8fc7\u89e3\u6790PPT\u6587\u4ef6\u7ed3\u6784\u3001\u63d0\u53d6\u5e7b\u706f\u7247\u5185\u5bb9\u7b49\u65b9\u5f0f<\/strong>\u3002<strong>python-pptx\u5e93\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u9ad8\u5c42\u6b21\u7684API\u6765\u5904\u7406PowerPoint\u6587\u4ef6\uff0c\u6613\u4e8e\u4f7f\u7528\u4e14\u529f\u80fd\u5f3a\u5927<\/strong>\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528python-pptx\u5e93\u6765\u8bfb\u53d6PPT\u6587\u4ef6\u7684\u8be6\u7ec6\u6b65\u9aa4\u548c\u4e00\u4e9b\u7ecf\u9a8c\u5206\u4eab\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5python-pptx\u5e93<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u8bfb\u53d6PPT\u6587\u4ef6\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5python-pptx\u5e93\u3002\u8fd9\u4e2a\u5e93\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u8f7b\u677e\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install python-pptx<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u5e93\u63d0\u4f9b\u4e86\u5bf9PPT\u6587\u4ef6\u7684\u521b\u5efa\u3001\u7f16\u8f91\u548c\u8bfb\u53d6\u7684\u652f\u6301\uff0c\u5b83\u662f\u57fa\u4e8ePython\u7684\u89e3\u51b3\u65b9\u6848\u4e2d\u6700\u5e38\u7528\u7684\u5de5\u5177\u4e4b\u4e00\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528python-pptx\u8bfb\u53d6PPT\u6587\u4ef6<\/p>\n<\/p>\n<ol>\n<li><strong>\u6253\u5f00PPT\u6587\u4ef6<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528python-pptx\u5e93\uff0c\u9996\u5148\u9700\u8981\u6253\u5f00PPT\u6587\u4ef6\u3002\u53ef\u4ee5\u901a\u8fc7Presentation\u7c7b\u6765\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pptx import Presentation<\/p>\n<h2><strong>\u6253\u5f00PPT\u6587\u4ef6<\/strong><\/h2>\n<p>ppt = Presentation(&#39;your_ppt_file.pptx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u4ee3\u7801\u6bb5\u4e2d\uff0c&#39;your_ppt_file.pptx&#39;\u662f\u8981\u8bfb\u53d6\u7684PPT\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u904d\u5386\u5e7b\u706f\u7247<\/strong><\/li>\n<\/ol>\n<p><p>\u4e00\u65e6PPT\u6587\u4ef6\u88ab\u6253\u5f00\uff0c\u4f60\u53ef\u4ee5\u904d\u5386\u5e7b\u706f\u7247\uff0c\u63d0\u53d6\u6bcf\u4e2a\u5e7b\u706f\u7247\u7684\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for slide in ppt.slides:<\/p>\n<p>    print(&quot;Slide:&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u904d\u5386\u6240\u6709\u5e7b\u706f\u7247\uff0c\u5e76\u6253\u5370\u4e00\u4e9b\u57fa\u672c\u4fe1\u606f\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u63d0\u53d6\u5e7b\u706f\u7247\u5185\u5bb9<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u6bcf\u4e2a\u5e7b\u706f\u7247\u4e2d\uff0c\u53ef\u4ee5\u63d0\u53d6\u4e0d\u540c\u7c7b\u578b\u7684\u5185\u5bb9\uff0c\u5982\u6587\u672c\u3001\u56fe\u50cf\u7b49\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u63d0\u53d6\u6587\u672c<\/strong><\/li>\n<\/ul>\n<p><p>\u6587\u672c\u901a\u5e38\u4f4d\u4e8e\u6587\u672c\u6846\u6216\u5f62\u72b6\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u5f62\u72b6\u6765\u63d0\u53d6\u6587\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for slide in ppt.slides:<\/p>\n<p>    for shape in slide.shapes:<\/p>\n<p>        if not shape.has_text_frame:<\/p>\n<p>            continue<\/p>\n<p>        for paragraph in shape.text_frame.paragraphs:<\/p>\n<p>            for run in paragraph.runs:<\/p>\n<p>                print(run.text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u63d0\u53d6\u6bcf\u4e2a\u5e7b\u706f\u7247\u4e2d\u7684\u6240\u6709\u6587\u672c\uff0c\u5e76\u6253\u5370\u5230\u63a7\u5236\u53f0\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u63d0\u53d6\u56fe\u50cf<\/strong><\/li>\n<\/ul>\n<p><p>\u63d0\u53d6\u56fe\u50cf\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\uff0c\u9700\u8981\u5904\u7406\u5f62\u72b6\u7684\u56fe\u7247\u5c5e\u6027\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pptx.enum.shapes import MSO_SHAPE_TYPE<\/p>\n<p>for slide in ppt.slides:<\/p>\n<p>    for shape in slide.shapes:<\/p>\n<p>        if shape.shape_type == MSO_SHAPE_TYPE.PICTURE:<\/p>\n<p>            image = shape.image<\/p>\n<p>            image_bytes = image.blob<\/p>\n<p>            with open(f&#39;image_{slide.slide_id}.jpg&#39;, &#39;wb&#39;) as img_file:<\/p>\n<p>                img_file.write(image_bytes)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u6bcf\u4e2a\u5e7b\u706f\u7247\u4e2d\u7684\u56fe\u7247\u4fdd\u5b58\u4e3aJPEG\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u89e3\u6790PPT\u6587\u4ef6\u7ed3\u6784<\/p>\n<\/p>\n<p><p>PPT\u6587\u4ef6\u7684\u7ed3\u6784\u662f\u57fa\u4e8eXML\u7684\uff0c\u8fd9\u4f7f\u5f97\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u89e3\u6790XML\u6765\u63d0\u53d6\u66f4\u591a\u7684\u4fe1\u606f\u3002\u867d\u7136python-pptx\u5df2\u7ecf\u5c01\u88c5\u4e86\u5927\u90e8\u5206\u5e38\u7528\u7684\u64cd\u4f5c\uff0c\u4f46\u7406\u89e3PPT\u7684\u5185\u90e8\u7ed3\u6784\u4f9d\u7136\u53ef\u4ee5\u5e2e\u52a9\u4f60\u89e3\u51b3\u4e00\u4e9b\u590d\u6742\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>PPT\u6587\u4ef6\u7684\u57fa\u672c\u7ed3\u6784<\/strong><\/li>\n<\/ol>\n<p><p>PPT\u6587\u4ef6\u662f\u4e00\u4e2aZIP\u5b58\u6863\uff0c\u5305\u542b\u591a\u4e2aXML\u6587\u4ef6\uff0c\u8fd9\u4e9b\u6587\u4ef6\u63cf\u8ff0\u4e86\u5e7b\u706f\u7247\u7684\u5916\u89c2\u548c\u5185\u5bb9\u3002\u4e3b\u8981\u5305\u62ec\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>ppt\/slides\/slide1.xml<\/strong>: \u63cf\u8ff0\u4e86\u5e7b\u706f\u7247\u7684\u5185\u5bb9\u3002<\/li>\n<li><strong>ppt\/media\/image1.jpeg<\/strong>: \u5b58\u50a8\u5e7b\u706f\u7247\u4e2d\u4f7f\u7528\u7684\u5a92\u4f53\u6587\u4ef6\u3002<\/li>\n<li><strong>ppt\/slideLayouts\/slideLayout1.xml<\/strong>: \u5b9a\u4e49\u5e7b\u706f\u7247\u7684\u5e03\u5c40\u3002<\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528xml.etree.ElementTree\u89e3\u6790XML<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528Python\u7684xml.etree.ElementTree\u6a21\u5757\u6765\u89e3\u6790\u8fd9\u4e9bXML\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import zipfile<\/p>\n<p>import xml.etree.ElementTree as ET<\/p>\n<p>with zipfile.ZipFile(&#39;your_ppt_file.pptx&#39;, &#39;r&#39;) as z:<\/p>\n<p>    with z.open(&#39;ppt\/slides\/slide1.xml&#39;) as slide_xml:<\/p>\n<p>        tree = ET.parse(slide_xml)<\/p>\n<p>        root = tree.getroot()<\/p>\n<p>        for elem in root.iter():<\/p>\n<p>            print(elem.tag, elem.text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u6253\u5370\u7b2c\u4e00\u4e2a\u5e7b\u706f\u7247\u7684\u6240\u6709XML\u5143\u7d20\u548c\u6587\u672c\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5904\u7406\u590d\u6742PPT\u7ed3\u6784<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0cPPT\u6587\u4ef6\u53ef\u80fd\u5305\u542b\u590d\u6742\u7684\u7ed3\u6784\uff0c\u5982\u5d4c\u5957\u7684\u6587\u672c\u6846\u3001\u7ec4\u5f62\u72b6\u6216\u52a8\u753b\u6548\u679c\u3002python-pptx\u5e93\u867d\u7136\u63d0\u4f9b\u4e86\u57fa\u7840\u7684\u8bfb\u53d6\u529f\u80fd\uff0c\u4f46\u5bf9\u4e8e\u8fd9\u4e9b\u590d\u6742\u7ed3\u6784\uff0c\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u6280\u672f\u6765\u5904\u7406\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5d4c\u5957\u7ed3\u6784\u7684\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5904\u7406\u5d4c\u5957\u7ed3\u6784\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u9012\u5f52\u7684\u65b9\u5f0f\u904d\u5386\u5f62\u72b6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def extract_text(shape):<\/p>\n<p>    if not shape.has_text_frame:<\/p>\n<p>        return<\/p>\n<p>    for paragraph in shape.text_frame.paragraphs:<\/p>\n<p>        for run in paragraph.runs:<\/p>\n<p>            print(run.text)<\/p>\n<p>def process_shapes(shapes):<\/p>\n<p>    for shape in shapes:<\/p>\n<p>        extract_text(shape)<\/p>\n<p>        if shape.shape_type == MSO_SHAPE_TYPE.GROUP:<\/p>\n<p>            process_shapes(shape.shapes)<\/p>\n<p>for slide in ppt.slides:<\/p>\n<p>    process_shapes(slide.shapes)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u53ef\u4ee5\u5904\u7406\u5d4c\u5957\u7684\u6587\u672c\u6846\u548c\u7ec4\u5f62\u72b6\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u52a8\u753b\u6548\u679c\u7684\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u52a8\u753b\u6548\u679c\u901a\u5e38\u662f\u901a\u8fc7PPT\u6587\u4ef6\u7684\u5176\u4ed6\u90e8\u5206\u5b58\u50a8\u7684\uff0c\u76f4\u63a5\u4ece\u5e7b\u706f\u7247\u4e2d\u63d0\u53d6\u5e76\u4e0d\u5bb9\u6613\u3002\u5904\u7406\u52a8\u753b\u6548\u679c\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u5de5\u5177\u6216\u5e93\u6765\u89e3\u6790\u8fd9\u4e9b\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3\u4e0e\u5b9e\u8df5\u7ecf\u9a8c<\/p>\n<\/p>\n<ul>\n<li><strong>\u4f7f\u7528python-pptx\u5e93\u662f\u8bfb\u53d6PPT\u6587\u4ef6\u7684\u9996\u9009\u65b9\u6cd5<\/strong>\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684API\u652f\u6301\uff0c\u4f46\u4e5f\u53ef\u80fd\u6709\u4e00\u4e9b\u9650\u5236\u3002<\/li>\n<li><strong>\u7406\u89e3PPT\u7684\u5185\u90e8\u7ed3\u6784<\/strong>\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5904\u7406\u590d\u6742\u60c5\u51b5\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u81ea\u5b9a\u4e49\u89e3\u6790\u903b\u8f91\u65f6\u3002<\/li>\n<li><strong>\u5bf9\u4e8e\u590d\u6742\u7684\u5e7b\u706f\u7247\u5185\u5bb9<\/strong>\uff0c\u5982\u52a8\u753b\u6216\u5d4c\u5957\u5f62\u72b6\uff0c\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u6280\u672f\u6216\u5de5\u5177\u6765\u5b9e\u73b0\u3002<\/li>\n<li><strong>\u5b9e\u8df5\u4e2d\uff0c\u5c3d\u53ef\u80fd\u5730\u4f7f\u7528\u5e93\u63d0\u4f9b\u7684\u63a5\u53e3<\/strong>\uff0c\u4ec5\u5728\u5fc5\u8981\u65f6\u624d\u6df1\u5165\u5230\u6587\u4ef6\u7ed3\u6784\u7ea7\u522b\u7684\u64cd\u4f5c\uff0c\u4ee5\u4fdd\u6301\u4ee3\u7801\u7684\u7b80\u6d01\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\u548c\u6280\u5de7\uff0c\u4f60\u53ef\u4ee5\u6709\u6548\u5730\u4f7f\u7528Python\u8bfb\u53d6\u548c\u5904\u7406PPT\u6587\u4ef6\uff0c\u6ee1\u8db3\u5404\u79cd\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u8bfb\u53d6PPT\u6587\u4ef6\u4e2d\u7684\u6587\u672c\u5185\u5bb9\uff1f<\/strong><br \/>\u8981\u8bfb\u53d6PPT\u6587\u4ef6\u4e2d\u7684\u6587\u672c\u5185\u5bb9\uff0c\u53ef\u4ee5\u4f7f\u7528<code>python-pptx<\/code>\u5e93\u3002\u8fd9\u4e2a\u5e93\u5141\u8bb8\u7528\u6237\u8f7b\u677e\u8bbf\u95ee\u5e7b\u706f\u7247\u4e2d\u7684\u6587\u672c\u6846\u3001\u6807\u9898\u548c\u5176\u4ed6\u5185\u5bb9\u3002\u5b89\u88c5\u5e93\u540e\uff0c\u901a\u8fc7\u904d\u5386\u6bcf\u4e2a\u5e7b\u706f\u7247\u548c\u6587\u672c\u6846\uff0c\u63d0\u53d6\u6240\u9700\u7684\u6587\u672c\u4fe1\u606f\u3002\u5177\u4f53\u4ee3\u7801\u793a\u4f8b\u53ef\u4ee5\u53c2\u8003\u5176\u5b98\u65b9\u6587\u6863\uff0c\u4ee5\u83b7\u53d6\u66f4\u8be6\u7ec6\u7684\u7528\u6cd5\u3002<\/p>\n<p><strong>\u6709\u6ca1\u6709\u5176\u4ed6\u5e93\u53ef\u4ee5\u7528\u6765\u8bfb\u53d6PPT\u6587\u4ef6\uff1f<\/strong><br \/>\u9664\u4e86<code>python-pptx<\/code>\uff0c\u8fd8\u6709\u5176\u4ed6\u4e00\u4e9b\u5e93\u53ef\u4ee5\u8bfb\u53d6PPT\u6587\u4ef6\uff0c\u4f8b\u5982<code>PyWin32<\/code>\u548c<code>LibreOffice<\/code>\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002\u8fd9\u4e9b\u5de5\u5177\u5404\u6709\u7279\u70b9\uff0c<code>PyWin32<\/code>\u9002\u5408Windows\u7528\u6237\uff0c\u53ef\u4ee5\u76f4\u63a5\u4e0eMicrosoft PowerPoint\u8fdb\u884c\u4ea4\u4e92\uff1b\u800c\u4f7f\u7528LibreOffice\u5219\u662f\u8de8\u5e73\u53f0\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u9002\u5408\u9700\u8981\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5de5\u4f5c\u7684\u7528\u6237\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u8bfb\u53d6PPT\u65f6\u5904\u7406\u56fe\u50cf\u548c\u56fe\u8868\uff1f<\/strong><br \/>\u5728\u8bfb\u53d6PPT\u6587\u4ef6\u65f6\uff0c\u5904\u7406\u56fe\u50cf\u548c\u56fe\u8868\u76f8\u5bf9\u590d\u6742\u3002<code>python-pptx<\/code>\u5e93\u5141\u8bb8\u7528\u6237\u63d0\u53d6\u56fe\u50cf\uff0c\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u5e7b\u706f\u7247\u4e2d\u7684\u5f62\u72b6\uff0c\u68c0\u67e5\u5f62\u72b6\u7684\u7c7b\u578b\uff0c\u4ee5\u8bc6\u522b\u5e76\u63d0\u53d6\u56fe\u50cf\u3002\u5bf9\u4e8e\u56fe\u8868\uff0c\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u66f4\u4e13\u95e8\u7684\u5e93\u6216\u65b9\u6cd5\u6765\u5206\u6790\u548c\u63d0\u53d6\u6570\u636e\uff0c\u901a\u5e38\u9700\u8981\u5bf9PPT\u6587\u4ef6\u7684\u7ed3\u6784\u6709\u4e00\u5b9a\u7684\u4e86\u89e3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7528Python\u8bfb\u53d6PPT\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528python-pptx\u5e93\u3001\u901a\u8fc7\u89e3\u6790PPT\u6587\u4ef6\u7ed3\u6784\u3001\u63d0\u53d6\u5e7b\u706f\u7247\u5185\u5bb9\u7b49\u65b9\u5f0f [&hellip;]","protected":false},"author":3,"featured_media":986662,"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\/986659"}],"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=986659"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/986659\/revisions"}],"predecessor-version":[{"id":986663,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/986659\/revisions\/986663"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/986662"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=986659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=986659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=986659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}