资 源 简 介
Summary
feedformatter is a Python library for generating news feeds in RSS and Atom formats.
Description
feedformatter is intended to be in many ways an "opposite" to the well-known and well-loved Python module feedparser. Whereas feedparser tries to turn any news feed in any format into a friendly data structure of lists and dictionaries, feedformatter tries to turn a friendly data structure of lists and dictionaries into a well-formatted news feed of whatever kind you like.
The ideal is that you should be able to parse some feed in the wild with feedparser, give the result to feedformatter to produce a new feed in the same format as the original, give that feed to feedparser and get back exactly the same data structure as you got by giving feedparser the original. At the moment feedformatter certainly falls short of that ideal, but it works well enough for simple tasks. RSS 1.0,