reference-feed-updated.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .. _reference.feed.updated:
  2. :py:attr:`feed.updated`
  3. =======================
  4. The date the feed was last updated, as a string in the same format as it was
  5. published in the original feed.
  6. This element is :ref:`parsed as a date <advanced.date>` and stored in
  7. :ref:`reference.feed.updated_parsed`.
  8. .. note::
  9. As of version 5.1.1, if this key doesn't exist but
  10. :py:attr:`feed.published` does, the value of
  11. :py:attr:`feed.published` will be returned.
  12. In the past the RSS pubDate element was stored in `updated`, but this incorrect
  13. behavior was reported in issue 310. However, developers may have come to rely
  14. on this incorrect behavior -- as was reported in issue 328 -- so to help avoid
  15. hurting their users' experience, this mapping from `updated` to `published` was
  16. temporarily introduced to give developers time to update their software, and to
  17. give users time to upgrade.
  18. This mapping is temporary and will be removed in a future version of
  19. feedparser.
  20. .. rubric:: Comes from
  21. * /atom03:feed/atom03:modified
  22. * /atom10:feed/atom10:updated
  23. * /rdf:RDF/rdf:channel/dc:date
  24. * /rdf:RDF/rdf:channel/dcterms:modified
  25. * /rss/channel/dc:date
  26. .. seealso::
  27. * :ref:`reference.feed.updated_parsed`