File: reference-etag.rst

package info (click to toggle)
feedparser 6.0.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,540 kB
  • sloc: xml: 11,459; python: 4,575; makefile: 7
file content (13 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
:py:attr:`etag`
===============

The ETag of the feed, as specified in the :abbr:`HTTP (Hypertext Transfer Protocol)` headers.

The purpose of :py:attr:`etag` is explained more fully in :ref:`http.etag`.

.. tip::

    :py:attr:`etag` will only be present if the feed was retrieved from a web server, and
    only if the web server provided an ETag :abbr:`HTTP (Hypertext Transfer Protocol)`
    header for the feed.  If the feed was parsed from a local file or from a string
    in memory, :py:attr:`etag` will not be present.