Skip to content

RSS2/RSS1/ATOM with support for websub (pubsubhubbub), cloud, logo, thumbnail and encoded HTML

License

Notifications You must be signed in to change notification settings

GrigoreAlexandru/Modern-feed-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modern-feed-parser

Build Status

Supported specs:

  • Rss 2.*
  • Rss 1.*
  • Atom 1.*

Upgraded version of simple-feed-parser with support for websub (pubsubhubbub), cloud, logo, thumbnail and encoded HTML.

Sample Usage

        try {
            URL url = new URL("https://superfeedr-blog-feed.herokuapp.com/");
            HttpURLConnection httpConnection = (HttpURLConnection) url.openConnection();
            if (httpConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
                InputStream feedStream = httpConnection.getInputStream();
                FeedParser parser = FeedParserFactory.newParser();
                Feed feed = parser.parse(feedStream);
                System.out.println(feed.getLogo());
                System.out.println(feed.getWebSub());
            }
        } catch (IOException e) {
            e.printStackTrace();
        } catch (FeedException e) {
            e.printStackTrace();
        }

Get started

JAR

About

RSS2/RSS1/ATOM with support for websub (pubsubhubbub), cloud, logo, thumbnail and encoded HTML

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages