Content Extractor

Go to Product
This Node Is Deprecated — This node is kept for backwards-compatibility, but the usage in new workflows is no longer recommended. The documentation below might contain more information.

Note: We recommend to replace this node with the Web Page Content Extractor which does not use KNIME’s Textprocessing cells as output format and is thus more flexible.

This node provides different content extraction algorithms, which allow extracting textual content from web pages, discarding irrelevant elements like navigation, ads, footers, headers, etc. The extractors are generally optimized for typical news article and blog post web pages. Currently, three algorithms are provided:

Readability

A port of the JavaScript browser bookmarklet “Readability” by Arc90 -- a great tool for extracting content from HTML pages. “Readability […] takes a crack at wiping out all that junk so you can have a more enjoyable reading experience. […] its success rate is pretty respectable (we’d guess over 90% of web sites are handled properly)”. Readability operates on the document’s DOM tree. Basically, it assigns all elements a score for their contents. Metrics for the scoring are length of their text content, number of commas and link density. Also, class and id names are taken into consideration; for example, elements with class name sidebar contain unlikely actual content in contrast to elements with class article. Website, JavaScript Source.

Palladian

The Palladian content extractor extracts clean sentences from (English) texts. That is, short phrases are not included in the output. Consider Readability for general content. The main difference is that this class also finds sentences in comment sections of web pages.

Options

Input
Column in the input table with the DOM documents to extract.
Extraction algorithm
The extraction algorithm to use.

Input Ports

Icon
Input with (X)HTML documents parsed as DOM/XML.

Output Ports

Icon
Text documents with extracted content.

Popular Predecessors

Views

This node has no views

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.