{"id":1115,"date":"2013-03-13T19:50:53","date_gmt":"2013-03-13T18:50:53","guid":{"rendered":"http:\/\/denbeke.be\/blog\/?page_id=1115"},"modified":"2013-03-13T19:50:53","modified_gmt":"2013-03-13T18:50:53","slug":"itunes-library-parser-album","status":"publish","type":"page","link":"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-album\/","title":{"rendered":"iTunes Library Parser &#8211; Album"},"content":{"rendered":"<pre><code data-language=\"python\">class Album:\r\n'''Class representing an album with a name, artist, year'''\r\n\r\ndef __init__(self, input_album, input_artist, input_year):\r\n    '''Creates new album with given name, artist and year'''\r\n    self.album = input_album\r\n    self.artist = input_artist\r\n    self.year = input_year\r\n\r\ndef getAlbum(self):\r\n    '''Returns the album'''\r\n    return self.album\r\n\r\ndef getArtist(self):\r\n    '''Returns the artist'''\r\n    return self.artist\r\n\r\ndef getYear(self):\r\n    '''Returns the year'''\r\n    return self.year\r\n\r\ndef __str__(self):\r\n    '''Returns string of Album'''\r\n    return str(self.album)+\" - \"+str(self.artist)+\" - \"+str(self.year)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>class Album: &#8221;&#8217;Class representing an album with a name, artist, year&#8221;&#8217; def __init__(self, input_album, input_artist, input_year): &#8221;&#8217;Creates new album with given name, artist and year&#8221;&#8217; self.album = input_album self.artist = input_artist self.year = input_year def getAlbum(self): &#8221;&#8217;Returns the album&#8221;&#8217; return self.album def getArtist(self): &#8221;&#8217;Returns the artist&#8221;&#8217; return self.artist def getYear(self): &#8221;&#8217;Returns the year&#8221;&#8217; return self.year [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1102,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-1115","page","type-page","status-publish","hentry","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>iTunes Library Parser - Album &#8211; DenBeke<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-album\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"iTunes Library Parser - Album &#8211; DenBeke\" \/>\n<meta property=\"og:description\" content=\"class Album: &#039;&#039;&#039;Class representing an album with a name, artist, year&#039;&#039;&#039; def __init__(self, input_album, input_artist, input_year): &#039;&#039;&#039;Creates new album with given name, artist and year&#039;&#039;&#039; self.album = input_album self.artist = input_artist self.year = input_year def getAlbum(self): &#039;&#039;&#039;Returns the album&#039;&#039;&#039; return self.album def getArtist(self): &#039;&#039;&#039;Returns the artist&#039;&#039;&#039; return self.artist def getYear(self): &#039;&#039;&#039;Returns the year&#039;&#039;&#039; return self.year [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-album\/\" \/>\n<meta property=\"og:site_name\" content=\"DenBeke\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@MthsBk\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/itunes-library-parser\\\/itunes-library-parser-album\\\/\",\"url\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/itunes-library-parser\\\/itunes-library-parser-album\\\/\",\"name\":\"iTunes Library Parser - Album &#8211; DenBeke\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/#website\"},\"datePublished\":\"2013-03-13T18:50:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/itunes-library-parser\\\/itunes-library-parser-album\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/denbeke.be\\\/blog\\\/itunes-library-parser\\\/itunes-library-parser-album\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/itunes-library-parser\\\/itunes-library-parser-album\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"iTunes Library Parser\",\"item\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/itunes-library-parser\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"iTunes Library Parser &#8211; Album\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/\",\"name\":\"DenBeke\",\"description\":\"Mathias Beke\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"iTunes Library Parser - Album &#8211; DenBeke","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-album\/","og_locale":"en_US","og_type":"article","og_title":"iTunes Library Parser - Album &#8211; DenBeke","og_description":"class Album: '''Class representing an album with a name, artist, year''' def __init__(self, input_album, input_artist, input_year): '''Creates new album with given name, artist and year''' self.album = input_album self.artist = input_artist self.year = input_year def getAlbum(self): '''Returns the album''' return self.album def getArtist(self): '''Returns the artist''' return self.artist def getYear(self): '''Returns the year''' return self.year [&hellip;]","og_url":"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-album\/","og_site_name":"DenBeke","twitter_card":"summary_large_image","twitter_site":"@MthsBk","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-album\/","url":"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-album\/","name":"iTunes Library Parser - Album &#8211; DenBeke","isPartOf":{"@id":"https:\/\/denbeke.be\/blog\/#website"},"datePublished":"2013-03-13T18:50:53+00:00","breadcrumb":{"@id":"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-album\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-album\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-album\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/denbeke.be\/blog\/"},{"@type":"ListItem","position":2,"name":"iTunes Library Parser","item":"https:\/\/denbeke.be\/blog\/itunes-library-parser\/"},{"@type":"ListItem","position":3,"name":"iTunes Library Parser &#8211; Album"}]},{"@type":"WebSite","@id":"https:\/\/denbeke.be\/blog\/#website","url":"https:\/\/denbeke.be\/blog\/","name":"DenBeke","description":"Mathias Beke","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/denbeke.be\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/pages\/1115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/comments?post=1115"}],"version-history":[{"count":1,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/pages\/1115\/revisions"}],"predecessor-version":[{"id":1116,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/pages\/1115\/revisions\/1116"}],"up":[{"embeddable":true,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/pages\/1102"}],"wp:attachment":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/media?parent=1115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}