parse()

listparser.parse(parse_obj: str | bytes) SuperDict

Parse a subscription list and return a dict containing the results.

parse_obj must be one of the following:

  • a string containing a URL

  • a string or bytes object containing an XML document

The dictionary returned will contain all of the parsed information, HTTP response headers (if applicable), and any exception encountered.


SuperDict

class listparser.common.SuperDict

SuperDict is a dictionary object with keys posing as instance attributes.

>>> i = SuperDict()
>>> i.one = 1
>>> i
{'one': 1}