Closed lemon24 closed 3 years ago
I'll add the feed version in this issue as well, since they're pretty similar.
To do:
For version, I think version
is OK, per https://feedparser.readthedocs.io/en/latest/version-detection.html.
There was an attempt to add JSON Feed support to feedparser, but it was abandoned (? as of 2021-10, it is on develop
, but not on master
; https://github.com/kurtmckee/feedparser/issues/103). It uses json1
and json11
as versions.
However, json10
may fit better with the existing versions (e.g. rss20
, atom10
)...
For description, RSS has description
("Phrase or sentence describing the channel.") and Atom has subtitle
("Contains a human-readable description or subtitle for the feed."); they're accesible by either name on the object returned by feedparser (d.feed.{description,subtitle}
).
JSON Feed has description
("provides more detail, beyond the title, on what the feed is about. A feed reader may display this text.").
FWIW, here's the subtitle word length for my feeds:
Per #153, we'll use the Atom name, subtitle
, as the attribute name.
... because it's not exposed at all.