entries[i].link¶

The primary link of this entry. Most feeds use this as the permanent link to the entry in the site’s archives.

If this is a relative URI, it is resolved according to a set of rules.

Some RSS feeds use guid when they mean link. guid can also be used as an opaque identifier that has nothing to do with links. If an RSS feed uses guid as the entry link and no link is present, Universal Feed Parser detects this and makes the guid available in entries[i].link.

In other words, you can always use entries[i].link to get the entry link, regardless of how the feed is actually structured.

Comes from

  • /atom03:feed/atom03:entry/atom03:link[@rel=”alternate”]/@href

  • /atom10:feed/atom10:entry/atom10:link[@rel=”alternate”]/@href

  • /atom10:feed/atom10:entry/atom10:link[not(@rel)]/@href

  • /rdf:RDF/rdf:item/rdf:link

  • /rss/channel/item/link

See also

  • entries[i].links

feedparser

Navigation

  • Basic Features
  • Advanced Features
  • HTTP Features
  • Annotated Examples
  • Revision history
  • Reference
    • bozo
    • bozo_exception
    • encoding
    • entries
    • entries[i].author
    • entries[i].author_detail
    • entries[i].comments
    • entries[i].content
    • entries[i].contributors
    • entries[i].created
    • entries[i].created_parsed
    • entries[i].enclosures
    • entries[i].expired
    • entries[i].expired_parsed
    • entries[i].id
    • entries[i].license
    • entries[i].link
    • entries[i].links
    • entries[i].published
    • entries[i].published_parsed
    • entries[i].publisher
    • entries[i].publisher_detail
    • entries[i].source
    • entries[i].summary
    • entries[i].summary_detail
    • entries[i].tags
    • entries[i].title
    • entries[i].title_detail
    • entries[i].updated
    • entries[i].updated_parsed
    • etag
    • feed
    • feed.author
    • feed.author_detail
    • feed.cloud
    • feed.contributors
    • feed.docs
    • feed.errorreportsto
    • feed.generator
    • feed.generator_detail
    • feed.icon
    • feed.id
    • feed.image
    • feed.info
    • feed.info_detail
    • feed.language
    • feed.license
    • feed.link
    • feed.links
    • feed.logo
    • feed.published
    • feed.published_parsed
    • feed.publisher
    • feed.publisher_detail
    • feed.rights
    • feed.rights_detail
    • feed.subtitle
    • feed.subtitle_detail
    • feed.tags
    • feed.textinput
    • feed.title
    • feed.title_detail
    • feed.ttl
    • feed.updated
    • feed.updated_parsed
    • headers
    • href
    • modified
    • namespaces
    • status
    • version
  • Documentation license

Related Topics

  • Documentation overview
    • Reference
      • Previous: entries[i].license
      • Next: entries[i].links

Quick search

©2010-2024 Kurt McKee, 2004-2008 Mark Pilgrim. | Powered by Sphinx 7.2.6 & Alabaster 0.7.16 | Page source