File: reference-entry-tags.rst

package info (click to toggle)
feedparser 5.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,980 kB
  • sloc: xml: 11,438; python: 4,238; makefile: 19
file content (46 lines) | stat: -rwxr-xr-x 1,180 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.. _reference.entry.tags:

:py:attr:`entries[i].tags`
==========================

A list of dictionaries that contain details of the categories for the entry.


.. note::

    Prior to version 4.0, :program:`Universal Feed Parser` exposed categories in
    ``feed.category`` (the primary category) and ``feed.categories`` (a list of
    tuples containing the domain and term of each category).  These uses are still
    supported for backward compatibility, but you will not see them in the parsed
    results unless you explicitly ask for them.


.. _reference.entry.tags.term:

:py:attr:`entries[i].tags[j].term`
----------------------------------

The category term (keyword).


:py:attr:`entries[i].tags[j].scheme`
------------------------------------

The category scheme (domain).


:py:attr:`entries[i].tags[j].label`
-----------------------------------

A human-readable label for the category.


.. rubric:: Comes from

* /atom10:feed/atom10:entry/category
* /atom03:feed/atom03:entry/dc:subject
* /rss/channel/item/category
* /rss/channel/item/dc:subject
* /rss/channel/item/itunes:category
* /rss/channel/item/itunes:keywords
* /rdf:RDF/rdf:channel/rdf:item/dc:subject