dom-distiller icon indicating copy to clipboard operation
dom-distiller copied to clipboard

Is there a way to build this package into a java module or lib?

Open swuqi opened this issue 4 years ago • 1 comments

Firstly I tried to get all related Java files from web and used Android Studio to build it into a Java lib. But finally I found that I couldn't get some dependencies. Then I built an Ubuntu VM and ran ant command to build the project. It didn't generate any Java lib either. I wonder there is a way to build a Java module so we can use it in other Apps.

Thank you.

swuqi avatar Mar 07 '20 01:03 swuqi

We ported the Java code of DOM Distiller to Go (without GWT and any Chromium dependencies):

https://github.com/markusmobius/go-domdistiller

It now works fine as a server-side program or command line program.

The stable branch is the most faithful port of Distiller (everything minus some parts where Distiller relies on some render-level info).

The master branch includes insights from Mozilla's readability.

markusmobius avatar Nov 04 '20 08:11 markusmobius