Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
research!!!

Wannaphong Phatthiyaphaibun wannaphong

🔥
research!!!
View GitHub Profile
@wannaphong
wannaphong / container.xml
Created Jan 8, 2017 — forked from avinassh/container.xml
Create EPUB files with Python
View container.xml
<?xml version='1.0' encoding='UTF-8'?>
<container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0">
<rootfiles>
<rootfile media-type="application/oebps-package+xml" full-path="content.opf"/>
</rootfiles>
</container>
View epub-embed-fonts.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import zipfile
from BeautifulSoup import BeautifulSoup, Tag # Better for HTML
from lxml import etree # Better for XML