Package org.apache.nutch.parse.feed
Class FeedParser
java.lang.Object
org.apache.nutch.parse.feed.FeedParser
- All Implemented Interfaces:
Configurable,Parser,Pluggable
A RSS/ATOM Feed
Parser that rapidly parses all referenced links and
content present in the feed.- Since:
- NUTCH-444
-
Field Summary
FieldsFields inherited from interface org.apache.nutch.parse.Parser
X_POINT_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConf()Parses the given feed and extracts out and parsers all linked items within the feed, using the underlying ROME feed parsing library.static voidRuns a command line version of thisParser.voidsetConf(Configuration conf) Sets theConfigurationobject for thisParser.
-
Field Details
-
CHARSET_UTF8
- See Also:
-
TEXT_PLAIN_CONTENT_TYPE
- See Also:
-
-
Constructor Details
-
FeedParser
public FeedParser()
-
-
Method Details
-
getParse
Parses the given feed and extracts out and parsers all linked items within the feed, using the underlying ROME feed parsing library. -
setConf
Sets theConfigurationobject for thisParser. ThisParserexpects the following configuration properties to be set:- URLNormalizers - properties in the configuration object to set up the default url normalizers.
- URLFilters - properties in the configuration object to set up the default url filters.
- Specified by:
setConfin interfaceConfigurable- Parameters:
conf- The HadoopConfigurationobject to use to configure thisParser.
-
getConf
- Specified by:
getConfin interfaceConfigurable- Returns:
- The
Configurationobject used to configure thisParser.
-
main
Runs a command line version of thisParser.- Parameters:
args- A single argument (expected at arg[0]) representing a path on the local filesystem that points to a feed file.- Throws:
Exception- If any error occurs.
-