Creating Atom feeds
A really useful feature for any blog is to have the ability for your readers to keep up-to-date with the latest content. This most commonly happens with an RSS reader client that polls your RSS subscription feed. While RSS is widely used, a better, more mature subscription format is available and is called Atom.
Both are files that can be requested by a client, and are standard and simple XML data structures. Fortunately, an Atom feed generator is built into Flask; or, more specifically, a contributed module is built into the WSGI interface that Flask uses called Werkzeug.
Getting it up-and-running is simple, all we need to do is to get hold of our most recently published posts from the database. It may be best to create a new ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access