bell notificationshomepageloginedit profileclubsdmBox

10.02% popularity   0 Reactions

I want to write a python automation program for merge html files in a epub using ebook-edit(in MacOS sub directory) in calibre. I know how to do it manually but I want to it many epub files automatically in python.
What should I do after the opening the epub file with ebook-edit?

import os, shlex, keyboard, time

from subprocess import Popen, PIPE

filename = 'test.epub'
command_line = '/Applications/calibre.app/Contents/MacOS/ebook-edit '+ '"'+ filename+ '"'
args = shlex.split(command_line)
p = Popen(args, stdin=PIPE)


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (1)

Login to follow story

More posts by @Tracey

1 Comments

Sorted by latest first Latest Oldest Best

10% popularity   0 Reactions

You are better off noting that Calibre is a python app. First look at its command line options. Then if that is not enough create an addin or just code that uses calibre python code.

One way might be to zip the HTML files together and pass that as the input file to ebook-convert see calibre documentation manual.calibre-ebook.com/generated/en/ebook-convert.html#recipe-input-options


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (0)

 

Back to top