5.2.4. RSS — RSS feed parsing¶
The RSS module contains functions for parsing RSS data.
TODO: More information
Note
TODO: RSS builds on FeedParser. Link to their docs here.
This module defines the following functions:
- RSS.FeedFromString(string)¶
Returns an RSS feed object by parsing the given string.
Parameter: string (str) – The RSS-formatted data to parse Returns: An RSS object created from the given data Return type: RSS
- RSS.FeedFromURL(url, values=None, headers={}, cacheTime=None)¶
Behaves similarly to RSS.FeedFromString(), but parses the result of a given HTTP request rather than a given string.
Parameters: - url (str) – The URL to request RSS-formatted data from from
- values (dict) – The values to use if making a POST request
- headers (dict) – Additional headers to include in the request
- cacheTime (int) – The maximum number of seconds the response should be cached for
Returns: An RSS object created from the given data
Return type: RSS