Import Tellico books into Calibre
I used to maintain my dead-tree book collection in Alexandria. When that stopped being developed I switched to Tellico. Tellico however doesn’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’t have to re-enter all the books by hand.
Install requirements (BeautifulSoup v4 is used to parse the XML):
sudo apt-get install python-bs4
Extract the Tellico data (the Tellico file (*.tc) is just a zip file with the XML data and cover images):
mkdir /tmp/tellico cd /tmp/tellico unzip [/path/to/tellico/file/MyBookLibrary.tc]
Now run the import/conversion script. The only argument it needs is the path to the tellico.xml file that you just unzipped:
python Tellico2Calibre.py tellico.xml
All the books are tagged with “Print”, and if they’re marked as loaned out in Tellico they also get the “Loaned” tag. The following data is imported:
- Cover image
- Published date