Difference between revisions of "SimpleGraph-HTML"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
|viewmode=hidden | |viewmode=hidden | ||
}} | }} | ||
− | = | + | = Example = |
+ | Extract links from the [http://agilemanifesto.org/ agile manifesto] | ||
+ | <source lang='java'> | ||
+ | HtmlSystem hs = HtmlSystem.forUrl("http://agilemanifesto.org/"); | ||
+ | ... | ||
+ | GraphTraversal<Vertex, Vertex> links = hs.g().V().hasLabel("a") | ||
+ | </source> | ||
+ | |||
[[Category:frontend]] | [[Category:frontend]] |
Latest revision as of 06:36, 13 December 2018
SimpleGraphModule
SimpleGraph HTML module
The SimpleGraph HTML module makes HTML files accessible via HTML Cleaner parser see HTML Cleaner. The initial issue is 6
Sources
- System: HtmlSystem.java
- JUnit-Test: TestHtmlSystem.java
Example
Extract links from the agile manifesto
HtmlSystem hs = HtmlSystem.forUrl("http://agilemanifesto.org/");
...
GraphTraversal<Vertex, Vertex> links = hs.g().V().hasLabel("a")