@Steve98052 it would be a little tricky in a single line. How about ten lines (probs more than 30 for someone as verbose as me) and the right to import an HTML or XML parser, a URL parser, and a module for dealing with zip archives.
(both ebup and web use a kind of HTML, web exports from google are zipped, and an epub file is zipped XHTML + more)