- Parse with CSS style
- Parse with original JS listener
- Parse with original image assets
- Customizable target URL & output path
import io.pcholkin.processor.HtmlProcessor;
public class Main {
public static void main(String[] args) {
try {
HtmlProcessor.process()
.buildURL("https://github.com/NikitaPcholkin/")
.parseCssStyle(true)
.parseJs(true)
.parseImages(true)
.outputFilePath("output.html")
.build();
System.out.println("HTML file saved with name: output.html");
} catch (IOException | InterruptedException | ScriptException | URISyntaxException e) {
e.printStackTrace();
}
}
}