{"id":937794,"date":"2024-12-26T19:58:47","date_gmt":"2024-12-26T11:58:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/937794.html"},"modified":"2024-12-26T19:58:50","modified_gmt":"2024-12-26T11:58:50","slug":"python%e5%a6%82%e4%bd%95%e6%93%8d%e4%bd%9cppt","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/937794.html","title":{"rendered":"python\u5982\u4f55\u64cd\u4f5cppt"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25073517\/392521e3-1310-4230-a109-b91088711ff9.webp\" alt=\"python\u5982\u4f55\u64cd\u4f5cppt\" \/><\/p>\n<p><p> <strong>\u8981\u64cd\u4f5cPPT\u6587\u4ef6\uff0cPython\u63d0\u4f9b\u4e86\u591a\u4e2a\u5e93\uff0c\u6700\u5e38\u7528\u7684\u5305\u62ecpython-pptx\u3001pptx\u548ccomtypes\u3002\u4f7f\u7528python-pptx\u53ef\u4ee5\u521b\u5efa\u548c\u7f16\u8f91PPT\u6587\u4ef6\uff0c\u64cd\u4f5c\u7b80\u5355\u6613\u4e0a\u624b\u3001\u529f\u80fd\u4e30\u5bcc\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528python-pptx\u5e93\u64cd\u4f5cPPT\u6587\u4ef6\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5\u548c\u57fa\u672c\u4f7f\u7528<\/p>\n<\/p>\n<p><p>\u8981\u4f7f\u7528python-pptx\u5e93\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\u3002\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u8fdb\u884c\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>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u5728Python\u4e2d\u4f7f\u7528\u8be5\u5e93\u6765\u521b\u5efa\u548c\u7f16\u8f91PPT\u6587\u4ef6\u3002\u521b\u5efa\u4e00\u4e2a\u65b0\u7684PPT\u6587\u4ef6\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u51e0\u884c\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pptx import Presentation<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684PPT\u6f14\u793a\u6587\u7a3f<\/strong><\/h2>\n<p>presentation = Presentation()<\/p>\n<h2><strong>\u4fdd\u5b58PPT\u6587\u4ef6<\/strong><\/h2>\n<p>presentation.save(&#39;my_presentation.pptx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u5e7b\u706f\u7247\u7684\u521b\u5efa\u4e0e\u7ba1\u7406<\/p>\n<\/p>\n<p><p>\u5728PPT\u4e2d\uff0c\u5e7b\u706f\u7247\u662f\u6700\u57fa\u672c\u7684\u5355\u5143\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u6dfb\u52a0\u3001\u5220\u9664\u6216\u91cd\u65b0\u6392\u5217\u5e7b\u706f\u7247\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u6dfb\u52a0\u5e7b\u706f\u7247<\/strong><\/li>\n<\/ol>\n<p><p>\u8981\u6dfb\u52a0\u5e7b\u706f\u7247\uff0c\u60a8\u9700\u8981\u9009\u62e9\u4e00\u79cd\u5e7b\u706f\u7247\u5e03\u5c40\uff08layout\uff09\u3002python-pptx\u63d0\u4f9b\u4e86\u4e00\u4e9b\u9ed8\u8ba4\u7684\u5e7b\u706f\u7247\u5e03\u5c40\uff0c\u6bd4\u5982\u6807\u9898\u5e7b\u706f\u7247\u3001\u6807\u9898\u548c\u5185\u5bb9\u5e7b\u706f\u7247\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u9009\u62e9\u4e00\u79cd\u5e7b\u706f\u7247\u5e03\u5c40<\/p>\n<p>slide_layout = presentation.slide_layouts[0]<\/p>\n<h2><strong>\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u5e7b\u706f\u7247<\/strong><\/h2>\n<p>slide = presentation.slides.add_slide(slide_layout)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5220\u9664\u548c\u91cd\u65b0\u6392\u5217\u5e7b\u706f\u7247<\/strong><\/li>\n<\/ol>\n<p><p>\u867d\u7136python-pptx\u4e0d\u76f4\u63a5\u652f\u6301\u5220\u9664\u5e7b\u706f\u7247\u7684\u529f\u80fd\uff0c\u4f46\u60a8\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u65b0\u7684PPT\u6587\u4ef6\u5e76\u4ec5\u590d\u5236\u6240\u9700\u7684\u5e7b\u706f\u7247\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u91cd\u65b0\u6392\u5217\u5e7b\u706f\u7247\u53ef\u4ee5\u901a\u8fc7\u6539\u53d8\u5e7b\u706f\u7247\u7684\u7d22\u5f15\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u6587\u672c\u548c\u5f62\u72b6\u7684\u64cd\u4f5c<\/p>\n<\/p>\n<ol>\n<li><strong>\u6dfb\u52a0\u6587\u672c<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5e7b\u706f\u7247\u4e2d\uff0c\u6587\u672c\u662f\u6700\u5e38\u89c1\u7684\u5185\u5bb9\u3002\u53ef\u4ee5\u901a\u8fc7\u83b7\u53d6\u5e7b\u706f\u7247\u4e2d\u7684\u5360\u4f4d\u7b26\u6765\u6dfb\u52a0\u548c\u7f16\u8f91\u6587\u672c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u5e7b\u706f\u7247\u4e2d\u7684\u6807\u9898\u5360\u4f4d\u7b26\u5e76\u8bbe\u7f6e\u6587\u672c<\/p>\n<p>title = slide.shapes.title<\/p>\n<p>title.text = &quot;Hello, World!&quot;<\/p>\n<h2><strong>\u83b7\u53d6\u5e7b\u706f\u7247\u4e2d\u7684\u5185\u5bb9\u5360\u4f4d\u7b26\u5e76\u8bbe\u7f6e\u6587\u672c<\/strong><\/h2>\n<p>content = slide.placeholders[1]<\/p>\n<p>content.text = &quot;This is a sample presentation using python-pptx.&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6dfb\u52a0\u5f62\u72b6<\/strong><\/li>\n<\/ol>\n<p><p>\u9664\u4e86\u6587\u672c\uff0c\u5f62\u72b6\u4e5f\u662fPPT\u4e2d\u5e38\u7528\u7684\u5143\u7d20\u3002\u53ef\u4ee5\u901a\u8fc7shapes.add\u65b9\u6cd5\u6dfb\u52a0\u5404\u79cd\u5f62\u72b6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pptx.util import Inches<\/p>\n<h2><strong>\u6dfb\u52a0\u4e00\u4e2a\u77e9\u5f62<\/strong><\/h2>\n<p>left = Inches(1)<\/p>\n<p>top = Inches(2)<\/p>\n<p>width = Inches(3)<\/p>\n<p>height = Inches(1)<\/p>\n<p>shape = slide.shapes.add_shape(<\/p>\n<p>    MSO_SHAPE.RECTANGLE, left, top, width, height<\/p>\n<p>)<\/p>\n<h2><strong>\u8bbe\u7f6e\u5f62\u72b6\u6587\u672c<\/strong><\/h2>\n<p>shape.text = &quot;This is a rectangle&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u56fe\u50cf\u548c\u8868\u683c\u7684\u64cd\u4f5c<\/p>\n<\/p>\n<ol>\n<li><strong>\u63d2\u5165\u56fe\u50cf<\/strong><\/li>\n<\/ol>\n<p><p>\u63d2\u5165\u56fe\u50cf\u662fPPT\u4e2d\u5e38\u7528\u7684\u529f\u80fd\u3002python-pptx\u5141\u8bb8\u60a8\u901a\u8fc7shapes.add_picture\u65b9\u6cd5\u63d2\u5165\u56fe\u50cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u63d2\u5165\u56fe\u50cf<\/p>\n<p>img_path = &#39;path\/to\/image.png&#39;<\/p>\n<p>left = Inches(1)<\/p>\n<p>top = Inches(1)<\/p>\n<p>slide.shapes.add_picture(img_path, left, top)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u521b\u5efa\u8868\u683c<\/strong><\/li>\n<\/ol>\n<p><p>\u8868\u683c\u662f\u53e6\u4e00\u79cd\u5e38\u89c1\u7684PPT\u5143\u7d20\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7shapes.add_table\u65b9\u6cd5\u521b\u5efa\u8868\u683c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u8868\u683c<\/p>\n<p>rows = 2<\/p>\n<p>cols = 2<\/p>\n<p>left = Inches(2)<\/p>\n<p>top = Inches(2)<\/p>\n<p>width = Inches(4)<\/p>\n<p>height = Inches(1.5)<\/p>\n<p>table = slide.shapes.add_table(rows, cols, left, top, width, height).table<\/p>\n<h2><strong>\u8bbe\u7f6e\u8868\u683c\u5185\u5bb9<\/strong><\/h2>\n<p>table.cell(0, 0).text = &quot;Column 1&quot;<\/p>\n<p>table.cell(0, 1).text = &quot;Column 2&quot;<\/p>\n<p>table.cell(1, 0).text = &quot;Value 1&quot;<\/p>\n<p>table.cell(1, 1).text = &quot;Value 2&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u6a21\u677f\u548c\u6837\u5f0f\u7684\u5e94\u7528<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528\u6a21\u677f<\/strong><\/li>\n<\/ol>\n<p><p>python-pptx\u5141\u8bb8\u60a8\u4f7f\u7528\u73b0\u6709\u7684PPT\u6587\u4ef6\u4f5c\u4e3a\u6a21\u677f\uff0c\u8fd9\u6837\u53ef\u4ee5\u4fdd\u6301\u4e00\u81f4\u7684\u6f14\u793a\u98ce\u683c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528\u73b0\u6709PPT\u6587\u4ef6\u4f5c\u4e3a\u6a21\u677f<\/p>\n<p>template_ppt = Presentation(&#39;template.pptx&#39;)<\/p>\n<h2><strong>\u5728\u6a21\u677f\u4e2d\u6dfb\u52a0\u65b0\u5e7b\u706f\u7247<\/strong><\/h2>\n<p>slide_layout = template_ppt.slide_layouts[0]<\/p>\n<p>slide = template_ppt.slides.add_slide(slide_layout)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u8bbe\u7f6e\u6837\u5f0f<\/strong><\/li>\n<\/ol>\n<p><p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u5b57\u4f53\u3001\u989c\u8272\u7b49\u5c5e\u6027\u6765\u8bbe\u7f6e\u6587\u672c\u548c\u5f62\u72b6\u7684\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pptx.dml.color import RGBColor<\/p>\n<p>from pptx.util import Pt<\/p>\n<h2><strong>\u8bbe\u7f6e\u5b57\u4f53\u5927\u5c0f\u548c\u989c\u8272<\/strong><\/h2>\n<p>title.text_frame.text = &quot;Styled Text&quot;<\/p>\n<p>title.text_frame.paragraphs[0].font.size = Pt(24)<\/p>\n<p>title.text_frame.paragraphs[0].font.color.rgb = RGBColor(255, 0, 0)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u516d\u3001\u52a8\u753b\u548c\u8fc7\u6e21\u6548\u679c<\/p>\n<\/p>\n<ol>\n<li><strong>\u8bbe\u7f6e\u52a8\u753b<\/strong><\/li>\n<\/ol>\n<p><p>python-pptx\u4e0d\u76f4\u63a5\u652f\u6301\u52a8\u753b\u6548\u679c\u7684\u8bbe\u7f6e\uff0c\u4f46\u60a8\u53ef\u4ee5\u5728\u751f\u6210PPT\u540e\u624b\u52a8\u5728PPT\u8f6f\u4ef6\u4e2d\u6dfb\u52a0\u52a8\u753b\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u8bbe\u7f6e\u8fc7\u6e21\u6548\u679c<\/strong><\/li>\n<\/ol>\n<p><p>\u540c\u6837\u5730\uff0c\u8fc7\u6e21\u6548\u679c\u7684\u8bbe\u7f6e\u4e5f\u9700\u8981\u5728PPT\u8f6f\u4ef6\u4e2d\u8fdb\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u4fdd\u5b58\u548c\u5bfc\u51fa<\/p>\n<\/p>\n<p><p>\u5b8c\u6210\u6240\u6709\u7f16\u8f91\u540e\uff0c\u60a8\u53ef\u4ee5\u5c06PPT\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4fdd\u5b58PPT\u6587\u4ef6<\/p>\n<p>presentation.save(&#39;my_presentation.pptx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0c<strong>python-pptx\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u5e93\uff0c\u80fd\u591f\u5e2e\u52a9\u60a8\u81ea\u52a8\u5316\u521b\u5efa\u548c\u7f16\u8f91PPT\u6587\u4ef6\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7b80\u5355\u6613\u7528\u7684API\uff0c\u4f7f\u5f97\u64cd\u4f5cPPT\u53d8\u5f97\u975e\u5e38\u5bb9\u6613\u3002\u901a\u8fc7\u5408\u7406\u4f7f\u7528\u8fd9\u4e9b\u529f\u80fd\uff0c\u60a8\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\uff0c\u5b9e\u73b0PPT\u5236\u4f5c\u8fc7\u7a0b\u7684\u81ea\u52a8\u5316\u3002<\/strong><\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u521b\u5efa\u548c\u7f16\u8f91PPT\u6587\u4ef6\uff1f<\/strong><br \/>\u4f7f\u7528Python\u521b\u5efa\u548c\u7f16\u8f91PPT\u6587\u4ef6\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u7b2c\u4e09\u65b9\u5e93\u5b9e\u73b0\uff0c\u6700\u5e38\u7528\u7684\u662f<code>python-pptx<\/code>\u3002\u8fd9\u4e2a\u5e93\u5141\u8bb8\u7528\u6237\u521b\u5efa\u65b0\u7684\u5e7b\u706f\u7247\u3001\u6dfb\u52a0\u6587\u672c\u3001\u56fe\u50cf\u3001\u56fe\u8868\u7b49\u5143\u7d20\u3002\u5b89\u88c5\u5e93\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u4ee3\u7801\u6765\u5b9a\u4e49\u5e7b\u706f\u7247\u7684\u5e03\u5c40\u548c\u5185\u5bb9\uff0c\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">from pptx import Presentation  \nprs = Presentation()  \nslide = prs.slides.add_slide(prs.slide_layouts[0])  \ntitle = slide.shapes.title  \ntitle.text = &quot;Hello, World!&quot;  \nprs.save(&#39;presentation.pptx&#39;)  \n<\/code><\/pre>\n<p><strong>Python\u64cd\u4f5cPPT\u65f6\u6709\u54ea\u4e9b\u5e38\u89c1\u7684\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Python\u64cd\u4f5cPPT\u65f6\uff0c\u7528\u6237\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5e93\u7684\u5b89\u88c5\u95ee\u9898\u3001\u5e7b\u706f\u7247\u5143\u7d20\u65e0\u6cd5\u6b63\u786e\u663e\u793a\u6216\u683c\u5f0f\u4e0d\u4e00\u81f4\u7b49\u3002\u786e\u4fdd\u4f7f\u7528\u7684\u662f\u6700\u65b0\u7248\u672c\u7684<code>python-pptx<\/code>\u5e93\uff0c\u5e76\u4ed4\u7ec6\u68c0\u67e5\u6587\u6863\u4ee5\u83b7\u53d6\u8be6\u7ec6\u7684\u529f\u80fd\u8bf4\u660e\u3002\u51fa\u73b0\u95ee\u9898\u65f6\uff0c\u67e5\u770b\u76f8\u5173\u7684GitHub\u9875\u9762\u6216\u8bba\u575b\u4e5f\u662f\u89e3\u51b3\u95ee\u9898\u7684\u597d\u65b9\u6cd5\u3002<\/p>\n<p><strong>\u600e\u6837\u901a\u8fc7Python\u5c06\u73b0\u6709\u7684PPT\u6587\u4ef6\u8f6c\u6362\u4e3a\u5176\u4ed6\u683c\u5f0f\uff1f<\/strong><br \/>\u4f7f\u7528Python\u53ef\u4ee5\u901a\u8fc7\u5e93\u5982<code>python-pptx<\/code>\u6765\u8bfb\u53d6PPT\u6587\u4ef6\uff0c\u4f46\u5bf9\u4e8e\u683c\u5f0f\u8f6c\u6362\uff08\u5982\u8f6c\u6362\u4e3aPDF\uff09\uff0c\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u5e93\uff0c\u5982<code>reportlab<\/code>\u6216<code>win32com<\/code>\u3002\u901a\u8fc7\u8c03\u7528\u8fd9\u4e9b\u5e93\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4ecePPT\u5230PDF\u7b49\u683c\u5f0f\u7684\u8f6c\u6362\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import win32com.client  \nppt = win32com.client.Dispatch(&quot;PowerPoint.Application&quot;)  \npresentation = ppt.Presentations.Open(&quot;your_presentation.pptx&quot;)  \npresentation.SaveAs(&quot;your_presentation.pdf&quot;, 32)  \npresentation.Close()  \nppt.Quit()  \n<\/code><\/pre>\n<p>\u6ce8\u610f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u9700\u8981\u5728Windows\u7cfb\u7edf\u4e0a\u8fd0\u884c\uff0c\u5e76\u4e14\u9700\u8981\u5b89\u88c5Microsoft PowerPoint\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u64cd\u4f5cPPT\u6587\u4ef6\uff0cPython\u63d0\u4f9b\u4e86\u591a\u4e2a\u5e93\uff0c\u6700\u5e38\u7528\u7684\u5305\u62ecpython-pptx\u3001pptx\u548ccomtypes\u3002\u4f7f [&hellip;]","protected":false},"author":3,"featured_media":937799,"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\/937794"}],"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=937794"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/937794\/revisions"}],"predecessor-version":[{"id":937800,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/937794\/revisions\/937800"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/937799"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=937794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=937794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=937794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}