Really Simple Discovery (RSD)
IndieWeb Utils contains an rsd_discovery function for use in finding the values associated with keys in an EditURI Really Simple Discovery document.
- indieweb_utils.rsd_discovery(url: str, attribute: str)[source]
Discover an RSD attribute from a URL.
- Parameters:
url – The URL to discover the RSD attribute from.
attribute – The attribute to discover.
- Returns:
The value of the attribute.
Example:
from indieweb.utils import rsd_discovery # discover the RSD document for a given URL rsd_discovery('http://example.com', 'trackback:ping')