title_body: ebook-edit in calibre automation with python
upvoted_answer: 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 https://manual.calibre-ebook.com/generated/en/ebook-convert.html#recipe-input-options