Plugins / Custom feeds

Share your ideas for future releases of nntp//rss.

Plugins / Custom feeds

Postby kim on Thu Jan 01, 2004 1:11 am

It's hard to explain the request, but I'll try.

Could you extend the code for reading feeds to include loading an external Java-class?

People could make a class that does whatever's needed to extract information (like parsing HTML) and returns a RSS feed. nntp/rss could then load the class instead of loading it with HTTP

Perhaps the format of the URL could be custom://class-name/, and the program would then load class-name.class, execute it and the class will then generate RSS. Perhaps you could also extend the URL to send parameters (like custom://class-name/?param1=value1&param2=value2) etc.

It would be great to be able to make custom feeds for sites that don't offer RSS.
Posts: 4
Joined: Thu Jan 01, 2004 1:04 am

Postby jason on Fri Jan 02, 2004 2:37 am

Sounds like a good idea. For a first simple version, classes could implement a simple interface like:

Code: Select all
public interface PlugIn {
    public String fetch(String url);

... where fetch would return the appropriate RSS or Atom formatted document. A more advanced interface could be offered to allow greater integration with the nntp//rss object model.

Will add this to the TODO list.

I can also envision some form of generic XML/XHTML consumer where, with the appropriate XPATH selectors, feed content could be extracted.
Site Admin
Posts: 114
Joined: Sat May 03, 2003 10:44 pm
Location: West Orange, NJ

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest