Skip to content

Instantly share code, notes, and snippets.

@gdamjan
Last active August 29, 2015 14:01
Show Gist options
  • Save gdamjan/79f346db1a5b20f6e17f to your computer and use it in GitHub Desktop.
Save gdamjan/79f346db1a5b20f6e17f to your computer and use it in GitHub Desktop.
#! /usr/bin/env python3
from lxml import html, etree
from lxml.html import builder as E
...
Moved to https://github.com/gdamjan/polaris-to-html
@gdamjan
Copy link
Author

gdamjan commented May 21, 2014

to run it on the whole collection:

 find polaris_sf_complete/html/* -type d -print0 | 
 xargs -0 --verbose -P3 -I{}  sh -c "cd {}; polaris-to-ebook.py --epub" &> out.log

kind of ugly with the sh -c "cd {}; ... but I'm lazy to implement chdir in the program itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment