DEV Community

peter279k
peter279k

Posted on

My RSS Cache Application

Overview of My Submission

  • Creating the RSS Cache can help me to cache the source RSS feeds easily!
  • It's my requirements for developing the RSS cache application.
  • Here is the simple system architecture to describe how to build the App:

App architecture

Submission Category:

  • It's the Wacky Wildcards category.

Language Used

  • Using the Python 3.8+ for developing the App.
  • Using the Python Flask to developing the web application.

Additional Resource info

Collaborators

@peter279k

Link to Code

GitHub logo peter279k / my-rss-cache

My RSS Cache App for storing the RSS cache

My RSS Cache

Sometitmes the RSS feed caching is not implemented, customizing the RSS cache for my favorite RSS feed.

How it works

How the data is stored:

  • The RSS data contents is stored in the single key and data type.
    • For each RSS data contents:
      • The lic_nttu_rss is the key and its value is the RSS XML feed contents.
      • The lic_nttu_rss_expired is the key and its value is current timestamp for fetching the RSS contents.

How the data is accessed:

  • Here is the sample code to access the RSS feed and expired with Python Redis OM:
from redis_om import get_redis_connection

# Get the RSS feed
rss_contents = redis_conn.get('lic_nttu_rss')

# Get the RSS expired value
expired = redis_conn.get('lic_nttu_rss_expired')
Enter fullscreen mode Exit fullscreen mode

How to run it locally?

Prerequisites

  • Python - 3.8+
  • pip - 21.1.1+

Local installation

  • Cloning the repository with git clone command.
  • Running…

Top comments (0)