The daisy pipeline epub creator script is too limited. html2epub will accept (almost arbitrarily bad) HTML and transform it into a valid EPUB document. In particular, it needs to be able to handle HTML downloaded from the internet. But thanks for the pointer