File: reference-entry-links.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 (67 lines) | stat: -rw-r--r-- 1,520 bytes parent folder | download | duplicates (7)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.. _reference.entry.links:

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

A list of dictionaries with details on the links associated with the feed.
Each link has a rel (relationship), type (content type), and href (the
:abbr:`URL (Uniform Resource Locator)` that the link points to).  Some links
may also have a title.


.. _reference.entry.links.rel:

:py:attr:`entries[i].links[j].rel`
----------------------------------

The relationship of this entry link.

Atom 1.0 defines five standard link relationships and describes the process for
registering others.  Here are the five standard rel values:

* `alternate`
* `enclosure`
* `related`
* `self`
* `via`


.. _reference.entry.links.type:

:py:attr:`entries[i].links[j].type`
-----------------------------------

The content type of the page that this entry link points to.


.. _reference.entry.links.href:

:py:attr:`entries[i].links[j].href`
-----------------------------------

The :abbr:`URL (Uniform Resource Locator)` of the page that this entry link
points to.

If this is a relative :abbr:`URI (Uniform Resource Identifier)`, it is
:ref:`resolved according to a set of rules <advanced.base>`.


.. _reference.entry.links.title:

:py:attr:`entries[i].links[j].title`
------------------------------------

The title of this entry link.


.. rubric:: Comes from

- /atom03:feed/atom03:entry/atom03:link
- /atom10:feed/atom10:entry/atom10:link
- /rdf:RDF/rdf:item/rdf:link
- /rss/channel/item/link


.. seealso::

    * :ref:`reference.entry.link`