{"id":126001,"date":"2022-06-25T07:17:31","date_gmt":"2022-06-25T07:17:31","guid":{"rendered":"https:\/\/blog.finxter.com\/?p=439023"},"modified":"2022-06-25T07:17:31","modified_gmt":"2022-06-25T07:17:31","slug":"python-convert-csv-to-text-file-csv-to-txt","status":"publish","type":"post","link":"https:\/\/sickgaming.net\/blog\/2022\/06\/25\/python-convert-csv-to-text-file-csv-to-txt\/","title":{"rendered":"Python Convert CSV to Text File (.csv to .txt)"},"content":{"rendered":"<div class=\"kk-star-ratings kksr-valign-top kksr-align-left \" data-payload=\"{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;439023&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;top&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;count&quot;:&quot;1&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (1 vote)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;}\">\n<div class=\"kksr-stars\">\n<div class=\"kksr-stars-inactive\">\n<div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"kksr-stars-active\" style=\"width: 142.5px;\">\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n<div class=\"kksr-legend\"> 5\/5 &#8211; (1 vote) <\/div>\n<\/div>\n<h2>Basic Challenge<\/h2>\n<\/p>\n<p>Here\u2019s the content of an example CSV file <code>\"my_file.csv\"<\/code> used in our code snippet below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Name,Job,Age,Income\nAlice,Programmer,23,110000\nBob,Executive,34,90000\nCarl,Sales,45,50000<\/pre>\n<p>If you visualize this CSV in table form, it looks like this:<\/p>\n<figure class=\"wp-block-table is-style-stripes\">\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Job<\/th>\n<th>Age<\/th>\n<th>Income<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Alice<\/td>\n<td>Programmer<\/td>\n<td>23<\/td>\n<td>110000<\/td>\n<\/tr>\n<tr>\n<td>Bob<\/td>\n<td>Executive<\/td>\n<td>34<\/td>\n<td>90000<\/td>\n<\/tr>\n<tr>\n<td>Carl<\/td>\n<td>Sales<\/td>\n<td>45<\/td>\n<td>50000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>The basic problem is to convert the CSV file <code>\"my_file.csv\"<\/code> to a new TXT file <code>\"my_file.txt\"<\/code> as is without changing its content<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Name,Job,Age,Income\nAlice,Programmer,23,110000\nBob,Executive,34,90000\nCarl,Sales,45,50000<\/pre>\n<p>We start with exploring this basic challenge and build from there by changing the delimiter and using Pandas to access individual columns.<\/p>\n<p>But first things first: <strong><em>How to convert a CSV file to a TXT file without changing its contents?<\/em><\/strong><\/p>\n<h2>Method 1: CSV to TXT Unchanged<\/h2>\n<p class=\"has-global-color-8-background-color has-background\">If you want to keep the content (including the delimiter <code>','<\/code>) in the CSV file unmodified, the conversion is simple: read the <code>.csv<\/code> file and write its content into a new <code>.txt<\/code> file using the <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/python-open-function\/\" data-type=\"post\" data-id=\"24793\" target=\"_blank\">open()<\/a><\/code>, <code><a href=\"https:\/\/blog.finxter.com\/python-read-binary-file\/\" data-type=\"post\" data-id=\"36231\" target=\"_blank\" rel=\"noreferrer noopener\">read()<\/a><\/code>, and <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/python-one-liner-write-string-to-file\/\" data-type=\"post\" data-id=\"10913\" target=\"_blank\">write()<\/a><\/code> functions without importing any library.<\/p>\n<p>In other words, perform the three steps to write a CSV to a TXT file unmodified:<\/p>\n<ol>\n<li>Open the CSV file in reading mode and the TXT file in writing mode.<\/li>\n<li>Read the CSV file and store it in a variable.<\/li>\n<li>Write the content into the TXT file.<\/li>\n<\/ol>\n<p>Here&#8217;s the code snippet that solves our basic challenge:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># 1. Open the CSV file in reading mode and the TXT file in writing mode\nwith open('my_file.csv', 'r') as f_in, open('my_file.txt', 'w') as f_out: # 2. Read the CSV file and store in variable content = f_in.read() # 3. Write the content into the TXT file f_out.write(content)<\/pre>\n<p class=\"has-global-color-8-background-color has-background\"><img decoding=\"async\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/1f632.png\" alt=\"\ud83d\ude32\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/> <strong>Little-Known Fact<\/strong>: Python allows <em>multiple expressions<\/em> in the <a href=\"https:\/\/blog.finxter.com\/how-to-open-multiple-files-in-python\/\" data-type=\"post\" data-id=\"403242\" target=\"_blank\" rel=\"noreferrer noopener\">context manager<\/a> (<code>with<\/code> opening line) if you separate them with a comma. <\/p>\n<p>The content of the <code>.csv<\/code> and <code>.txt<\/code> files is identical:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Name,Job,Age,Income\nAlice,Programmer,23,110000\nBob,Executive,34,90000\nCarl,Sales,45,50000<\/pre>\n<p>So far, so good. But what if you have a slightly different problem:<\/p>\n<h2>Method 2: CSV to TXT Empty Space Delimiter<\/h2>\n<p><strong>Challenge<\/strong>: How to convert a CSV file to a TXT file in Python by replacing the delimiter <code>','<\/code> with the empty space <code>' '<\/code>?<\/p>\n<p><strong>Example<\/strong>: Convert the following file <code>'my_file.csv'<\/code>&#8230;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Name,Job,Age,Income\nAlice,Programmer,23,110000\nBob,Executive,34,90000\nCarl,Sales,45,50000<\/pre>\n<p>&#8230; to this file <code>'my_file.txt'<\/code> &#8230;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Name Job Age Income\nAlice Programmer 23 110000\nBob Executive 34 90000\nCarl Sales 45 50000<\/pre>\n<p>Here&#8217;s the simple solution to this challenge:<\/p>\n<p class=\"has-global-color-8-background-color has-background\">If you want to change the delimiter <code>','<\/code> to an empty string <code>' '<\/code> in the new TXT file, read the <code>.csv<\/code> file and write its content into a new <code>.txt<\/code> file using the <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/python-open-function\/\" data-type=\"post\" data-id=\"24793\" target=\"_blank\">open()<\/a><\/code>, <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/python-read-binary-file\/\" data-type=\"post\" data-id=\"36231\" target=\"_blank\">read()<\/a><\/code>, <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/python-string-replace-2\/\" data-type=\"post\" data-id=\"26083\" target=\"_blank\">string.replace()<\/a><\/code>, and <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/python-one-liner-write-string-to-file\/\" data-type=\"post\" data-id=\"10913\" target=\"_blank\">write()<\/a><\/code> functions without importing any library.<\/p>\n<p>To convert a CSV to a TXT file in Python, perform the following steps:<\/p>\n<ol>\n<li>Open the CSV file in reading mode and the TXT file in writing mode.<\/li>\n<li>Read the CSV file into a string.<\/li>\n<li>Create a new string by replacing all occurrences of the delimiter <code>','<\/code> with the empty string <code>' '<\/code>. <\/li>\n<li>Write the content into the TXT file.<\/li>\n<\/ol>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"2\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">with open('my_file.csv', 'r') as f_in, open('my_file.txt', 'w') as f_out: content = f_in.read().replace(',', ' ') f_out.write(content)\n<\/pre>\n<p>So far, so good. But in Python, there are always many ways to solve a problem. Let&#8217;s have a look at a powerful alternative to the no-library approach used before:<\/p>\n<h2>Method 3: CSV to TXT using Pandas<\/h2>\n<p>Assuming you&#8217;ve already <a href=\"https:\/\/blog.finxter.com\/how-to-install-pandas-in-python\/\" data-type=\"post\" data-id=\"35926\" target=\"_blank\" rel=\"noreferrer noopener\">installed pandas<\/a> in your local environment, you can write a <strong>CSV to a TXT file in Python pandas<\/strong> using the following four steps:<\/p>\n<ol class=\"has-base-background-color has-background\">\n<li>Import the <code><a href=\"https:\/\/blog.finxter.com\/pandas-quickstart\/\" data-type=\"post\" data-id=\"16511\">pan<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/pandas-quickstart\/\" data-type=\"post\" data-id=\"16511\" target=\"_blank\">d<\/a><a href=\"https:\/\/blog.finxter.com\/pandas-quickstart\/\" data-type=\"post\" data-id=\"16511\">as<\/a><\/code> library.<\/li>\n<li>Read the CSV file into a DataFrame using <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/read-and-write-flat-files-with-pandas\/\" data-type=\"post\" data-id=\"62847\" target=\"_blank\">pd.read_csv()<\/a><\/code>.<\/li>\n<li>Convert the DataFrame to a String using the built-in <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/python-str-function\/\" data-type=\"URL\" data-id=\"https:\/\/blog.finxter.com\/python-str-function\/\" target=\"_blank\">str()<\/a><\/code> function.<\/li>\n<li>Print the string to a file using the file argument of the <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/python-print\/\" data-type=\"URL\" data-id=\"https:\/\/blog.finxter.com\/python-print\/\" target=\"_blank\">print()<\/a><\/code> function, for example.<\/li>\n<\/ol>\n<p>Here&#8217;s the basic Python example:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import pandas as pd df = pd.read_csv('my_file.csv')\ncontent = str(df)\nprint(content, file=open('my_file.txt', 'w'))<\/pre>\n<p class=\"has-global-color-8-background-color has-background\"><img decoding=\"async\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/1f632.png\" alt=\"\ud83d\ude32\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/> <strong>Little-Known Fact<\/strong>: Python&#8217;s <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/python-print\/\" data-type=\"post\" data-id=\"20731\" target=\"_blank\">print()<\/a><\/code> function allows you to write a <a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/python-one-liner-write-string-to-file\/\" data-type=\"post\" data-id=\"10913\" target=\"_blank\">string directly into a file <\/a>object if you use the <code>file<\/code> argument as shown in the code snippet.<\/p>\n<p>The output of the previous code snippet is as follows:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"> Name Job Age Income\n0 Alice Programmer 23 110000\n1 Bob Executive 34 90000\n2 Carl Sales 45 50000<\/pre>\n<p>Beautiful, isn&#8217;t it? <img decoding=\"async\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/1f49c.png\" alt=\"\ud83d\udc9c\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<p>Let&#8217;s have a look at the last variation of the &#8220;CSV to TXT&#8221; problem addressed in this tutorial:<\/p>\n<h2>Method 4: CSV Columns or Rows to TXT using Pandas<\/h2>\n<p><strong>How to write one or more individual columns or rows of the CSV file into a TXT file using Python Pandas?<\/strong><\/p>\n<ol class=\"has-base-background-color has-background\">\n<li>Import the <code><a href=\"https:\/\/blog.finxter.com\/pandas-quickstart\/\" data-type=\"post\" data-id=\"16511\">pan<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/pandas-quickstart\/\" data-type=\"post\" data-id=\"16511\" target=\"_blank\">d<\/a><a href=\"https:\/\/blog.finxter.com\/pandas-quickstart\/\" data-type=\"post\" data-id=\"16511\">as<\/a><\/code> library.<\/li>\n<li>Read the CSV file into a DataFrame using <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/read-and-write-flat-files-with-pandas\/\" data-type=\"post\" data-id=\"62847\" target=\"_blank\">pd.read_csv()<\/a><\/code>.<\/li>\n<li>Select the column(s) or row(s) to write into the TXT file from the DataFrame using <a href=\"https:\/\/blog.finxter.com\/pandas-dataframe-indexing\/\" data-type=\"post\" data-id=\"64801\" target=\"_blank\" rel=\"noreferrer noopener\">Pandas indexing or slicing<\/a>.<\/li>\n<li>Call <code>df.to_string()<\/code> to convert the DataFrame to a string in a human-readable way.<\/li>\n<li>Print the string to a file using the file argument of the <code><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/python-print\/\" data-type=\"URL\" data-id=\"https:\/\/blog.finxter.com\/python-print\/\" target=\"_blank\">print()<\/a><\/code> function, for example.<\/li>\n<\/ol>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"4\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import pandas as pd df = pd.read_csv('my_file.csv')\ncontent = str(df['Name'])\nprint(content, file=open('my_file.txt', 'w'))<\/pre>\n<p>The content in a new file <code>'my_file.txt'<\/code>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">0 Alice\n1 Bob\n2 Carl<\/pre>\n<p>Of course, you can also select individual rows or multiple columns like so:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"4\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import pandas as pd df = pd.read_csv('my_file.csv')\ncontent = df['Name'][:2].to_string()\nprint(content, file=open('my_file.txt', 'w'))<\/pre>\n<p>The content of the new file <code>'my_file.txt'<\/code> shows that only the first two rows have been taken due to the <a rel=\"noreferrer noopener\" href=\"https:\/\/blog.finxter.com\/slicing-data-from-a-pandas-dataframe-using-loc-and-iloc\/\" data-type=\"post\" data-id=\"230997\" target=\"_blank\">slicing<\/a> operation <code>[:2]<\/code> in the previous code snippet:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">0 Alice\n1 Bob<\/pre>\n<p>Done! You&#8217;ve earned some programming enjoyment:<\/p>\n<h2>Programmer Humor<\/h2>\n<p class=\"has-global-color-8-background-color has-background\"><img decoding=\"async\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/2753.png\" alt=\"\u2753\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/> <code><strong>Question:<\/strong> How did the programmer <strong><em>die<\/em><\/strong> in the shower? &#x2620;<\/p>\n<p>&#x2757; <strong>Answer<\/strong>: They read the shampoo bottle instructions: <br \/><em><strong>Lather. Rinse. Repeat.<\/strong><\/em><\/code><\/p>\n<h2>Conclusion<\/h2>\n<p>I hope you enjoyed reading this article and learned something new. Feel free to join our email newsletter with free cheat sheets and weekly Python tutorials:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>5\/5 &#8211; (1 vote) Basic Challenge Here\u2019s the content of an example CSV file &#8220;my_file.csv&#8221; used in our code snippet below: Name,Job,Age,Income Alice,Programmer,23,110000 Bob,Executive,34,90000 Carl,Sales,45,50000 If you visualize this CSV in table form, it looks like this: Name Job Age Income Alice Programmer 23 110000 Bob Executive 34 90000 Carl Sales 45 50000 The basic [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[857],"tags":[73,468,528],"class_list":["post-126001","post","type-post","status-publish","format-standard","hentry","category-python-tut","tag-programming","tag-python","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/126001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/comments?post=126001"}],"version-history":[{"count":0,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/126001\/revisions"}],"wp:attachment":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media?parent=126001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/categories?post=126001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/tags?post=126001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}