File: reference-feed-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 (65 lines) | stat: -rw-r--r-- 1,389 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
.. _reference.feed.links:

:py:attr:`feed.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.feed.links.rel:

:py:attr:`feed.links[i].rel`
----------------------------

The relationship of this feed 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.feed.links.type:

:py:attr:`feed.links[i].type`
-----------------------------

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


.. _reference.feed.links.href:

:py:attr:`feed.links[i].href`
-----------------------------

The :abbr:`URL (Uniform Resource Locator)` of the page that this feed 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>`.


:py:attr:`feed.links[i].title`
------------------------------

The title of this feed link.


.. rubric:: Comes from

* /atom03:feed/atom03:link
* /atom10:feed/atom10:link
* /rdf:RDF/rdf:channel/rdf:link
* /rss/channel/link


.. seealso::

    * :ref:`reference.feed.link`