nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Renaud Richardet (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NUTCH-444) Possibly use a different library to parse RSS feed for improved performance and compatibility
Date Fri, 09 Feb 2007 23:51:05 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471880
] 

Renaud Richardet commented on NUTCH-444:
----------------------------------------

Gal,
Would you be able to share your code with Stax? What license does Stax uses?

Nutch Newbie,
> In my case sometime the RSS URL doesn't end with .xml or .rss so some of the feeds got
indexed like the way current nutch trunk do i.e as html.  
I thought the parser was chosen based on the MIME, right?

Chris, 
What was the issues you had with Rome? It seems to be pretty straightforward now:

SyndFeedInput input = new SyndFeedInput();
SyndFeed feed = input.build(new InputStreamReader(new ByteArrayInputStream(raw)));
String feedTitle = feed.getTitle();
String feedAuthor = feed.getAuthor();
String feedUrl = feed.getLink();
String feedLanguage = feed.getLanguage();

List entries = feed.getEntries();
Iterator it = entries.iterator();
while (it.hasNext()) {
 SyndEntryImpl entry = (SyndEntryImpl) it.next();
 String entryLink = entry.getLink();
 String entryTitle = entry.getTitle();
 String entryContents = getFeedText(entry);
 long entryDate = entry.getPublishedDate().getTime();
}

> Possibly use a different library to parse RSS feed for improved performance and compatibility
> ---------------------------------------------------------------------------------------------
>
>                 Key: NUTCH-444
>                 URL: https://issues.apache.org/jira/browse/NUTCH-444
>             Project: Nutch
>          Issue Type: Improvement
>          Components: fetcher
>    Affects Versions: 0.9.0
>            Reporter: Renaud Richardet
>            Priority: Minor
>             Fix For: 0.9.0
>
>
> As discussed by Nutch Newbie, Gal, and Chris on NUTCH-443, the current library (feedparser)
has the following issues:
> - OutOfMemory when parsing > 100k feeds, since it has to convert the feed to jdom
first
> - no support for Atom 1.0
> - there has been no development in the last year
> Alternatives are:
> - Rome 
> - Informa
> - custom implementation based on Stax
> - ??

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message