parsel.selector — Parsel 1.6.0 documentation
parsel.readthedocs.io › en › latestIf the list is empty, return an empty dict. """ for x in self: return x.attrib return {} [docs] class Selector: """ :class:`Selector` allows you to select parts of an XML or HTML text using CSS or XPath expressions and extract data from it. ``text`` is a `str`` object ``type`` defines the selector type, it can be ``"html"``, ``"xml"`` or ``None ...