public final class ArticleContentExtrator extends Object implements Extractor<ArticleContentExtrator.ContentFetchResult>
ArticleExtractor to
extract the largest block of text and the article title.| Modifier and Type | Class and Description |
|---|---|
static class |
ArticleContentExtrator.ContentFetchResult
Article content fetch result.
|
| Constructor and Description |
|---|
ArticleContentExtrator() |
| Modifier and Type | Method and Description |
|---|---|
ArticleContentExtrator.ContentFetchResult |
extract(String site)
Extracts from a given URL all the content needed and return it.
|
static String |
extractTitle(String html)
Extracts the title from the given HTML.
|
static void |
main(String[] args) |
public ArticleContentExtrator.ContentFetchResult extract(String site)
Extractorextract in interface Extractor<ArticleContentExtrator.ContentFetchResult>public static String extractTitle(String html) throws org.htmlparser.util.ParserException
org.htmlparser.util.ParserExceptionpublic static void main(String[] args) throws IOException, InterruptedException, ExecutionException
Copyright © 2016. All rights reserved.