<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hennzen</title>
    <description>The latest articles on DEV Community by Hennzen (@hennzen).</description>
    <link>https://dev.to/hennzen</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F483736%2F8b75e123-ad5e-438e-9603-0298f5b3a1ee.jpeg</url>
      <title>DEV Community: Hennzen</title>
      <link>https://dev.to/hennzen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hennzen"/>
    <language>en</language>
    <item>
      <title>Shazam-to-JSON</title>
      <dc:creator>Hennzen</dc:creator>
      <pubDate>Thu, 08 Oct 2020 18:07:55 +0000</pubDate>
      <link>https://dev.to/hennzen/shazam-to-json-14k7</link>
      <guid>https://dev.to/hennzen/shazam-to-json-14k7</guid>
      <description>&lt;p&gt;My approach to exporting Shazams to JSON via &lt;br&gt;
&lt;a href="https://www.shazam.com/myshazam"&gt;https://www.shazam.com/myshazam&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No intro? Just jump to the code&lt;/p&gt;
&lt;h2&gt;
  
  
  Intro
&lt;/h2&gt;

&lt;p&gt;I love my Shazams. They only contains songs I absolutely didn't know when tagging. It's growing since 2011 and it's a ride through all genres. I don't want to lose it.&lt;/p&gt;

&lt;p&gt;That said, when Shazam for Android suddenly lost a couple of songs back in 2016 and showed them as 'unknown track' for whatever reasons, I realized I wanted a backup. With a little bit of mistrust I also wondered if a migration to a new phone would work, although &lt;a href="https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup"&gt;Titanium backup&lt;/a&gt; had never let me down so far.&lt;/p&gt;

&lt;p&gt;I have no idea when Shazam introduced the feature to &lt;a href="https://www.shazam.com/myshazam"&gt;access your tags via web&lt;/a&gt;. I also don't know when they introduced the Export to Spotify feature. The Spotify thing sounded like just what I wanted, because Apple Music is not for me. Unfortunately, the resulting Spotify playlist left me with just about 60% of my original tags, probably because song matching seems to be done via artist and song title, which isn't particularly precise sometimes.&lt;/p&gt;

&lt;p&gt;So what the heck, a text export (read: JSON) that I could drop into a git repo (because why not) would be just enough for me. Luckily, with a little bit of Javascript that's not too much of a hassle, as long as Shazam/Apple keeps up the web access to our tags.&lt;/p&gt;

&lt;p&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;Copy the code below and drop it into your browser's console. Don't forget to scroll all the way down the website before executing. Otherwise not all songs will be loaded.&lt;/p&gt;

&lt;p&gt;The result is then available in your clipboard. Voilà.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


</description>
      <category>javascript</category>
    </item>
  </channel>
</rss>
