[ 
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.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to