Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scraper-nodes-dev/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id("de.jjohannes.extra-java-module-info")
}

version = '0.5.0'
version = '0.6.0'

extraJavaModuleInfo {
module("jsoup-1.12.1.jar", "org.jsoup", "1.12.1") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Executes a css query on a html String.
*/
@NodePlugin("0.3.0")
@NodePlugin("0.4.0")
public final class HtmlCssQuery implements StreamNode {

/** Raw html String */
Expand Down Expand Up @@ -73,6 +73,9 @@ public void process(@NotNull StreamNodeContainer n, @NotNull FlowMap o) {
case ATTR:
copy.output(put, element.attr(attr));
break;
case OUTERHTML:
copy.output(put, element.outerHtml());
break;
}

n.streamFlowMap(o, copy);
Expand All @@ -82,5 +85,5 @@ public void process(@NotNull StreamNodeContainer n, @NotNull FlowMap o) {
}


enum ElementOutput { TEXT, HTML, ATTR }
enum ElementOutput { TEXT, HTML, ATTR, OUTERHTML }
}