{"id":1009366,"date":"2024-12-27T11:11:09","date_gmt":"2024-12-27T03:11:09","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1009366.html"},"modified":"2024-12-27T11:11:11","modified_gmt":"2024-12-27T03:11:11","slug":"python%e5%a6%82%e4%bd%95%e5%a4%84%e7%90%86excle","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1009366.html","title":{"rendered":"python\u5982\u4f55\u5904\u7406excle"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084315\/aaca4df8-9ae6-4171-a2e2-29dff7776b46.webp\" alt=\"python\u5982\u4f55\u5904\u7406excle\" \/><\/p>\n<p><p> <strong>Python\u5904\u7406Excel\u7684\u5e38\u7528\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528pandas\u5e93\u3001openpyxl\u5e93\u3001xlrd\u548cxlwt\u5e93\u3002\u5176\u4e2d\uff0cpandas\u5e93\u662f\u6700\u4e3a\u5f3a\u5927\u4e14\u5e7f\u6cdb\u4f7f\u7528\u7684\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u8bfb\u53d6\u548c\u5199\u5165Excel\u6587\u4ef6\uff0c\u8fd8\u80fd\u5bf9\u6570\u636e\u8fdb\u884c\u5404\u79cd\u590d\u6742\u7684\u5206\u6790\u548c\u64cd\u4f5c\u3002openpyxl\u5e93\u4e3b\u8981\u7528\u4e8e\u5904\u7406.xlsx\u683c\u5f0f\u7684Excel\u6587\u4ef6\uff0cxlrd\u548cxlwt\u5219\u7528\u4e8e\u5904\u7406\u65e7\u7248\u7684.xls\u6587\u4ef6\u3002<\/strong><\/p>\n<\/p>\n<p><p>Python\u4f5c\u4e3a\u4e00\u79cd\u5f3a\u5927\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5177\u5907\u5904\u7406Excel\u6587\u4ef6\u7684\u4e30\u5bcc\u529f\u80fd\u3002\u4f7f\u7528pandas\u5e93\u662f\u6700\u4e3a\u63a8\u8350\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u636e\u64cd\u4f5c\u548c\u5206\u6790\u529f\u80fd\u3002\u901a\u8fc7pandas\uff0c\u6211\u4eec\u4e0d\u4ec5\u53ef\u4ee5\u8f7b\u677e\u8bfb\u53d6\u548c\u5199\u5165Excel\u6587\u4ef6\uff0c\u8fd8\u53ef\u4ee5\u5bf9\u6570\u636e\u8fdb\u884c\u6e05\u6d17\u3001\u8fc7\u6ee4\u3001\u805a\u5408\u7b49\u591a\u79cd\u64cd\u4f5c\u3002openpyxl\u5e93\u5219\u63d0\u4f9b\u4e86\u5bf9Excel\u6587\u4ef6\u7684\u57fa\u7840\u8bfb\u5199\u529f\u80fd\uff0c\u9002\u5408\u5904\u7406\u7b80\u5355\u7684Excel\u6587\u4ef6\u64cd\u4f5c\u3002\u5bf9\u4e8e\u5904\u7406\u65e7\u7248Excel\u6587\u4ef6\uff0cxlrd\u548cxlwt\u5e93\u4ecd\u7136\u662f\u6709\u7528\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5e93\u6765\u5904\u7406Excel\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001PANDAS\u5e93\u5904\u7406Excel<\/h3>\n<\/p>\n<p><h4>1. \u8bfb\u53d6Excel\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>pandas\u5e93\u4e2d\u7684<code>read_excel<\/code>\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u8bfb\u53d6Excel\u6587\u4ef6\u3002\u901a\u8fc7\u6307\u5b9a\u6587\u4ef6\u8def\u5f84\u548c\u5de5\u4f5c\u8868\u540d\u79f0\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06Excel\u6570\u636e\u52a0\u8f7d\u5230DataFrame\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u8bfb\u53d6Excel\u6587\u4ef6<\/strong><\/h2>\n<p>df = pd.read_excel(&#39;example.xlsx&#39;, sheet_name=&#39;Sheet1&#39;)<\/p>\n<p>print(df.head())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5199\u5165Excel\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u8981\u5c06DataFrame\u6570\u636e\u5199\u5165Excel\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>to_excel<\/code>\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5199\u5165Excel\u6587\u4ef6<\/p>\n<p>df.to_excel(&#39;output.xlsx&#39;, index=False)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u6570\u636e\u5206\u6790\u4e0e\u5904\u7406<\/h4>\n<\/p>\n<p><p>pandas\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6570\u636e\u5904\u7406\u65b9\u6cd5\uff0c\u4f8b\u5982\u8fc7\u6ee4\u3001\u6392\u5e8f\u3001\u805a\u5408\u7b49\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8fc7\u6ee4\u6570\u636e<\/p>\n<p>filtered_df = df[df[&#39;Column1&#39;] &gt; 10]<\/p>\n<h2><strong>\u6570\u636e\u6392\u5e8f<\/strong><\/h2>\n<p>sorted_df = df.sort_values(by=&#39;Column2&#39;, ascending=False)<\/p>\n<h2><strong>\u6570\u636e\u805a\u5408<\/strong><\/h2>\n<p>grouped_df = df.groupby(&#39;Column3&#39;).sum()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001OPENPYXL\u5e93\u5904\u7406Excel<\/h3>\n<\/p>\n<p><h4>1. \u5b89\u88c5\u4e0e\u5bfc\u5165<\/h4>\n<\/p>\n<p><p>openpyxl\u5e93\u4e13\u6ce8\u4e8e\u5904\u7406.xlsx\u6587\u4ef6\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install openpyxl<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u53ef\u4ee5\u5bfc\u5165\u4f7f\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from openpyxl import load_workbook<\/p>\n<h2><strong>\u52a0\u8f7dExcel\u5de5\u4f5c\u7c3f<\/strong><\/h2>\n<p>workbook = load_workbook(&#39;example.xlsx&#39;)<\/p>\n<h2><strong>\u83b7\u53d6\u5de5\u4f5c\u8868<\/strong><\/h2>\n<p>sheet = workbook[&#39;Sheet1&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8bfb\u53d6\u4e0e\u5199\u5165<\/h4>\n<\/p>\n<p><p>openpyxl\u5141\u8bb8\u9010\u884c\u8bfb\u53d6\u548c\u5199\u5165Excel\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bfb\u53d6\u5355\u5143\u683c\u6570\u636e<\/p>\n<p>cell_value = sheet[&#39;A1&#39;].value<\/p>\n<h2><strong>\u5199\u5165\u5355\u5143\u683c\u6570\u636e<\/strong><\/h2>\n<p>sheet[&#39;B2&#39;] = &#39;New Value&#39;<\/p>\n<p>workbook.save(&#39;modified_example.xlsx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u521b\u5efa\u65b0\u7684\u5de5\u4f5c\u8868<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u65b0\u7684\u5de5\u4f5c\u8868\u5e76\u5199\u5165\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u65b0\u7684\u5de5\u4f5c\u8868<\/p>\n<p>new_sheet = workbook.create_sheet(title=&#39;NewSheet&#39;)<\/p>\n<h2><strong>\u5199\u5165\u6570\u636e<\/strong><\/h2>\n<p>new_sheet[&#39;A1&#39;] = &#39;Hello&#39;<\/p>\n<p>workbook.save(&#39;example_with_new_sheet.xlsx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001XLRD\u548cXLWT\u5e93\u5904\u7406Excel<\/h3>\n<\/p>\n<p><h4>1. \u5b89\u88c5\u4e0e\u57fa\u7840\u64cd\u4f5c<\/h4>\n<\/p>\n<p><p>xlrd\u548cxlwt\u5e93\u7528\u4e8e\u5904\u7406\u65e7\u7248\u7684.xls\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install xlrd xlwt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8bfb\u53d6.xls\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528xlrd\u8bfb\u53d6.xls\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import xlrd<\/p>\n<h2><strong>\u6253\u5f00\u5de5\u4f5c\u7c3f<\/strong><\/h2>\n<p>workbook = xlrd.open_workbook(&#39;example.xls&#39;)<\/p>\n<h2><strong>\u9009\u62e9\u5de5\u4f5c\u8868<\/strong><\/h2>\n<p>sheet = workbook.sheet_by_name(&#39;Sheet1&#39;)<\/p>\n<h2><strong>\u8bfb\u53d6\u5355\u5143\u683c<\/strong><\/h2>\n<p>cell_value = sheet.cell_value(0, 0)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5199\u5165.xls\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528xlwt\u5199\u5165.xls\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import xlwt<\/p>\n<h2><strong>\u521b\u5efa\u5de5\u4f5c\u7c3f<\/strong><\/h2>\n<p>workbook = xlwt.Workbook()<\/p>\n<h2><strong>\u6dfb\u52a0\u5de5\u4f5c\u8868<\/strong><\/h2>\n<p>sheet = workbook.add_sheet(&#39;Sheet1&#39;)<\/p>\n<h2><strong>\u5199\u5165\u6570\u636e<\/strong><\/h2>\n<p>sheet.write(0, 0, &#39;Data&#39;)<\/p>\n<h2><strong>\u4fdd\u5b58\u6587\u4ef6<\/strong><\/h2>\n<p>workbook.save(&#39;output.xls&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u7efc\u5408\u5e94\u7528\u4e0e\u5b9e\u9645\u6848\u4f8b<\/h3>\n<\/p>\n<p><h4>1. \u6570\u636e\u6e05\u6d17\u4e0e\u8f6c\u6362<\/h4>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6570\u636e\u6e05\u6d17\u662f\u5904\u7406Excel\u6587\u4ef6\u7684\u91cd\u8981\u6b65\u9aa4\u3002pandas\u7684\u5f3a\u5927\u529f\u80fd\u4f7f\u5f97\u6570\u636e\u6e05\u6d17\u53d8\u5f97\u5bb9\u6613\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5220\u9664\u7f3a\u5931\u503c<\/p>\n<p>cleaned_df = df.dropna()<\/p>\n<h2><strong>\u8f6c\u6362\u6570\u636e\u7c7b\u578b<\/strong><\/h2>\n<p>df[&#39;Column1&#39;] = df[&#39;Column1&#39;].astype(float)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u6570\u636e\u53ef\u89c6\u5316<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u5c06\u5904\u7406\u540e\u7684\u6570\u636e\u5bfc\u5165\u53ef\u89c6\u5316\u5de5\u5177\u6216\u4f7f\u7528Python\u7684\u53ef\u89c6\u5316\u5e93\uff0c\u5982matplotlib\u6216seaborn\uff0c\u6211\u4eec\u53ef\u4ee5\u751f\u6210\u5404\u79cd\u56fe\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u7ed8\u5236\u67f1\u72b6\u56fe<\/strong><\/h2>\n<p>df.plot(kind=&#39;bar&#39;, x=&#39;Column1&#39;, y=&#39;Column2&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u81ea\u52a8\u5316\u62a5\u544a\u751f\u6210<\/h4>\n<\/p>\n<p><p>Python\u53ef\u4ee5\u81ea\u52a8\u751f\u6210\u62a5\u544a\uff0c\u4f8b\u5982\u5c06\u6570\u636e\u5206\u6790\u7ed3\u679c\u5bfc\u51fa\u4e3aExcel\u6587\u4ef6\uff0c\u5e76\u901a\u8fc7\u90ae\u4ef6\u53d1\u9001\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528pandas\u751f\u6210Excel\u62a5\u544a<\/p>\n<p>analysis_result.to_excel(&#39;report.xlsx&#39;, index=False)<\/p>\n<h2><strong>\u53d1\u9001\u90ae\u4ef6\uff08\u5047\u8bbe\u4f7f\u7528smtplib\u5e93\uff09<\/strong><\/h2>\n<p>import smtplib<\/p>\n<p>from em<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>l.message import EmailMessage<\/p>\n<p>msg = EmailMessage()<\/p>\n<p>msg[&#39;Subject&#39;] = &#39;Data Analysis Report&#39;<\/p>\n<p>msg[&#39;From&#39;] = &#39;your_email@example.com&#39;<\/p>\n<p>msg[&#39;To&#39;] = &#39;recipient@example.com&#39;<\/p>\n<p>msg.set_content(&#39;Please find the attached report.&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u9644\u4ef6<\/strong><\/h2>\n<p>with open(&#39;report.xlsx&#39;, &#39;rb&#39;) as file:<\/p>\n<p>    msg.add_attachment(file.read(), maintype=&#39;application&#39;, subtype=&#39;octet-stream&#39;, filename=&#39;report.xlsx&#39;)<\/p>\n<h2><strong>\u53d1\u9001\u90ae\u4ef6<\/strong><\/h2>\n<p>with smtplib.SMTP(&#39;smtp.example.com&#39;) as server:<\/p>\n<p>    server.login(&#39;your_email@example.com&#39;, &#39;password&#39;)<\/p>\n<p>    server.send_message(msg)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u4ecb\u7ecd\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230Python\u5904\u7406Excel\u6587\u4ef6\u7684\u591a\u79cd\u65b9\u6cd5\u53ca\u5176\u7075\u6d3b\u6027\u3002\u9009\u62e9\u5408\u9002\u7684\u5e93\u548c\u65b9\u6cd5\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u6570\u636e\u5904\u7406\u7684\u6548\u7387\u548c\u51c6\u786e\u6027\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u6570\u636e\u8bfb\u53d6\u4e0e\u5199\u5165\uff0c\u8fd8\u662f\u590d\u6742\u7684\u6570\u636e\u5206\u6790\u4e0e\u62a5\u544a\u751f\u6210\uff0cPython\u90fd\u80fd\u63d0\u4f9b\u5f3a\u6709\u529b\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u8bfb\u53d6Excel\u6587\u4ef6\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5e93\u6765\u8bfb\u53d6Excel\u6587\u4ef6\uff0c\u6700\u5e38\u7528\u7684\u662f<code>pandas<\/code>\u548c<code>openpyxl<\/code>\u3002\u4f7f\u7528<code>pandas<\/code>\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7<code>pd.read_excel(&#39;\u6587\u4ef6\u8def\u5f84&#39;)<\/code>\u6765\u8f7b\u677e\u8bfb\u53d6Excel\u6570\u636e\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3aDataFrame\u683c\u5f0f\uff0c\u65b9\u4fbf\u540e\u7eed\u5904\u7406\u3002<\/p>\n<p><strong>\u5904\u7406Excel\u6587\u4ef6\u65f6\uff0c\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u6e05\u6d17\u548c\u8f6c\u6362\uff1f<\/strong><br \/>\u5728\u4f7f\u7528<code>pandas<\/code>\u8bfb\u53d6Excel\u6570\u636e\u540e\uff0c\u60a8\u53ef\u4ee5\u5229\u7528\u5176\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u529f\u80fd\u8fdb\u884c\u6570\u636e\u6e05\u6d17\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>dropna()<\/code>\u65b9\u6cd5\u5220\u9664\u7f3a\u5931\u503c\uff0c\u6216\u8005\u4f7f\u7528<code>apply()<\/code>\u51fd\u6570\u5bf9\u5217\u8fdb\u884c\u7279\u5b9a\u7684\u8f6c\u6362\u3002\u8fd9\u4e9b\u64cd\u4f5c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u786e\u4fdd\u6570\u636e\u7684\u8d28\u91cf\u548c\u51c6\u786e\u6027\u3002<\/p>\n<p><strong>Python\u4e2d\u6709\u54ea\u4e9b\u5e93\u53ef\u4ee5\u8fdb\u884cExcel\u6587\u4ef6\u7684\u5199\u5165\u64cd\u4f5c\uff1f<\/strong><br \/>\u9664\u4e86\u8bfb\u53d6Excel\u6587\u4ef6\uff0c<code>pandas<\/code>\u540c\u6837\u652f\u6301\u5c06\u6570\u636e\u5199\u5165Excel\u3002\u4f7f\u7528<code>to_excel()<\/code>\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5c06DataFrame\u4fdd\u5b58\u4e3aExcel\u6587\u4ef6\u3002\u6b64\u5916\uff0c<code>openpyxl<\/code>\u548c<code>xlsxwriter<\/code>\u5e93\u4e5f\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u548c\u5199\u5165Excel\u6587\u4ef6\uff0c\u652f\u6301\u66f4\u590d\u6742\u7684\u683c\u5f0f\u548c\u6837\u5f0f\u8bbe\u7f6e\u3002\u9009\u62e9\u5408\u9002\u7684\u5e93\u53ef\u4ee5\u6839\u636e\u60a8\u7684\u5177\u4f53\u9700\u6c42\u6765\u5b9a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5904\u7406Excel\u7684\u5e38\u7528\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528pandas\u5e93\u3001openpyxl\u5e93\u3001xlrd\u548cxlwt\u5e93\u3002\u5176\u4e2d\uff0cp [&hellip;]","protected":false},"author":3,"featured_media":1009374,"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\/1009366"}],"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=1009366"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1009366\/revisions"}],"predecessor-version":[{"id":1009376,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1009366\/revisions\/1009376"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1009374"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1009366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1009366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1009366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}