Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rssreader

> 编程语言
Open source

A simple Java library for reading RSS and Atom feeds

199 stars0 likes0 views
WebsiteGitHub

About

A simple Java library for reading RSS and Atom feeds

RSS Reader

[!NOTE] From version 3.0.0:

  • New Java package name
  • New group ID in Maven / Gradle dependency declaration
  • Moved repository from JCenter to Maven Central Repository

RSS Reader is a simple Java library for reading RSS and Atom feeds. It has zero 3rd party dependencies, a low memory footprint and can process large feeds. Requires at minimum Java 11.

RSS (Rich Site Summary) is a type of web feed which allows users to access updates to online content in a standardized, computer-readable format. It removes the need for the user to manually check the website for new content.

Examples

Read RSS feed

Reads from a RSS (or Atom) feed.

java
RssReader rssReader = new RssReader();
List items = rssReader.read(URL)
                            .toList();

Extract all items that contains the word football in the title.

java
RssReader reader = new RssReader();
Stream rssFeed = reader.read(URL);
List footballArticles = rssFeed.filter(i -> i.getTitle().equals(Optional.of("football")))
                                     .toList();

Read feed from a file

Reading from file using InputStream

java
InputStream inputStream = new FileInputStream("/path/to/file");
List items = new RssReader().read(inputStream);
                                  .toList();

Reading from file using file URI

java
List items = new RssReader().read("file:/path/to/file");
                                  .toList();

Read from multiple feeds

Read from multiple feeds into a single stream of items sorted in descending (newest first) publication date order and prints the title.

java
List urls = List.of(URL1, URL2, URL3, URL4, URL5); 
new RssReader().read(urls)
               .sorted()
               .map(Item::getTitle)
               .forEach(System.out::println);

To change sort order to ascending (oldest first) publication date

java
.sorted(ItemComparator.oldestPublishedItemFirst())

For sorting on updated date instead of publication date

java
.sorted(ItemComparator.newestUpdatedItemFirst())
.sorted(ItemComparator.oldestUpdatedItemFirst())

Feed Filters

Feed filters allow you to clean or transform RSS feed data before it is parsed. This is useful for handling malformed content, removing invalid characters, or applying custom preprocessing logic. Filters are applied to the raw InputStream of the feed, allowing for flexible transformations before parsing begins. Each filter must implement the FeedFilter interface. For example, to remove invalid XML characters from a feed before parsing:

java
RssReader reader = new RssReader();
List items = reader.addFeedFilter(new InvalidXmlCharacterFilter())
                         .read(URL)
                         .toList();

Podcast / iTunes module

Use iTunes module for extracting data from Podcast specific tags and attributes.

java
List items = new ItunesRssReader().read(URL)
                                              .toList();

Custom RSS / Atom feed extensions

Support for mapping custom tags and attributes in feed to item and channel object.

java
List items = new RssReader()
             .addItemExtension("dc:creator", Item::setAuthor)
             .addItemExtension("dc:date", Item::setPubDate)
             .read("https://lwn.net/headlines/rss")
             .toList();

Download

Download the latest JAR or grab via Maven or Gradle.

Maven setup

Add dependency declaration:

xml

    ...
    
        
            com.apptasticsoftware
            rssreader
            3.12.0
        
    
    ...

Gradle setup

Add dependency declaration:

groovy
dependencies {
    implementation 'com.apptasticsoftware:rssreader:3.12.0'
}

Markup Validation Services

Useful links for validating feeds

RSS / Atom

https://validator.w3.org/feed/

https://www.feedvalidator.org/check.cgi

Podcast / iTunes

https://podba.se/validate/

https://www.castfeedvalidator.com/

License

MIT License

Copyright (c) 2025, Apptastic Software

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaatomatom-feedatom-libatom-library

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言