Nonfunctional: brandonsanderson.com has changed layout in the last several years and this codebase no longer succeeds at its purpose. Feel free to fork it or submit PRs to adjust to the revised website layout, but don't expect this code to work as-is.
Reads Brandon Sanderson's book annotations and formats as an epub book.
sudo pip install -r requirements.txt
./run.sh
Requires a link to any page in the annotations
./get_book.py 'Elantris Annotations' 'Brandon Sanderson' http://www.brandonsanderson.com/annotation-elantris-introduction/ epub/elantris-data/
Requires annotations to already be downloaded
./gen_epub.py epub/elantris-data/ epub/elantris-annotations/
The book is generated at epub/elantris-annotations.epub