This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns in.grok.history.html-parser | |
| (:require [clojure.contrib.logging :as log]) | |
| (:import [org.htmlcleaner HtmlCleaner] | |
| [org.apache.commons.lang StringEscapeUtils])) | |
| (defn parse-page | |
| "Given the HTML source of a web page, parses it and returns the :title | |
| and the tag-stripped :content of the page. Does not do any encoding | |
| detection, it is expected that this has already been done." | |
| [page-src] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Experiments in running a headless OpenOffice as a document convertor for TiddlyDocs, etc. | |
| Running OpenOffice Headless: | |
| $ cd /Applications/OpenOffice.org.app/Contents/program #Mac OSX | |
| $ cd /usr/lib/openoffice.org.app/program #CentOS | |
| $ ./soffice.bin -headless -invisible -nofirststartwizard -accept="socket,port=8100;urp;" | |
| init script: | |
| see openoffice.sh xvfb.sh for init.d scripts |
NewerOlder