{"id":613,"date":"2016-04-23T13:57:52","date_gmt":"2016-04-23T18:57:52","guid":{"rendered":"http:\/\/ebixio.com\/blog\/?p=613"},"modified":"2016-04-23T13:59:19","modified_gmt":"2016-04-23T18:59:19","slug":"import-tellico-books-into-calibre","status":"publish","type":"post","link":"http:\/\/ebixio.com\/blog\/2016\/04\/23\/import-tellico-books-into-calibre\/","title":{"rendered":"Import Tellico books into Calibre"},"content":{"rendered":"<p>I used to maintain my dead-tree book collection in Alexandria. When that stopped being developed I switched to Tellico. Tellico however doesn&#8217;t have a simple way of retrieving cover images, so recently I switched to using Calibre.<\/p>\n<p>The following <a href=\"https:\/\/gist.github.com\/gburca\/cb261572bf0c7c4f874ae638fd99d1f8\" target=\"_blank\">python script<\/a> automates the process of converting from Tellico to Calibre so you don&#8217;t have to re-enter all the books by hand.<\/p>\n<p>Install requirements (BeautifulSoup v4 is used to parse the XML):<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get install python-bs4\r\n<\/pre>\n<p>Extract the Tellico data (the Tellico file (*.tc) is just a zip file with the XML data and cover images):<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmkdir \/tmp\/tellico\r\ncd \/tmp\/tellico\r\nunzip &#x5B;\/path\/to\/tellico\/file\/MyBookLibrary.tc]\r\n<\/pre>\n<p>Now run the import\/conversion script. The only argument it needs is the path to the tellico.xml file that you just unzipped:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npython Tellico2Calibre.py tellico.xml\r\n<\/pre>\n<p>All the books are tagged with &#8220;Print&#8221;, and if they&#8217;re marked as loaned out in Tellico they also get the &#8220;Loaned&#8221; tag. The following data is imported:<\/p>\n<ul>\n<li>Title<\/li>\n<li>Authors<\/li>\n<li>ISBN<\/li>\n<li>Cover image<\/li>\n<li>Publisher<\/li>\n<li>Published date<\/li>\n<li>Comments<\/li>\n<li>Rating<\/li>\n<\/ul>\n<p><script src=\"https:\/\/gist.github.com\/gburca\/cb261572bf0c7c4f874ae638fd99d1f8.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used to maintain my dead-tree book collection in Alexandria. When that stopped being developed I switched to Tellico. Tellico however doesn&#8217;t have a simple way of retrieving cover images, so recently I switched to using Calibre. The following python script automates the process of converting from Tellico to Calibre so you don&#8217;t have to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-613","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/comments?post=613"}],"version-history":[{"count":5,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/613\/revisions"}],"predecessor-version":[{"id":618,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/613\/revisions\/618"}],"wp:attachment":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/media?parent=613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/categories?post=613"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/tags?post=613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}