


Once calibre is installed, a command-line utility 'ebook-convert' is made available which takes two command-line arguments, name of the file to be converted and name of the output file. I have a folder 'ebooks' which contains all the downloaded ebooks.Īfter files are converted to the required format, they are stored in 'ebooks/kindle' directory and the original file is moved to 'ebooks/processed' directory. Print("Already exists : "+final_file_name) If final_file_name not in converted_files and extension not in ignored_extensions: Mypath_processed = "/home/user/Downloads/ebooks/processed/" # path where processed files will be moved to, clearing the downloaded folder Mypath_converted = "/home/user/Downloads/ebooks/kindle/" # list of extensions that needs to be ignored. # return name of file to be kept after conversion. Or use the below script to convert the books. You may install and use it to convert books from one format to another in bulk.īut if you are more of a terminal guy then you need to read further.įirst install the calibre. Hence I searched for some tool which might perform the bulk conversion. You need to convert them to either mobi or azw3 format.Ĭonverting books one by one using some online tool is extremely time-consuming and frustrating. I purchased a few books from the kindle store and downloaded most of the books in Epub format. Recently I bought Amazon's Ebook Reader, kindle paperwhite 3. This is the first article in this series. We are starting a series of python scripts which we may use in our daily life to automate the mundane task and save some time.
