forked from scrapy/cssselect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
37 lines (30 loc) · 824 Bytes
/
__init__.py
File metadata and controls
37 lines (30 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: utf-8 -*-
"""
CSS Selectors based on XPath
============================
This module supports selecting XML/HTML elements based on CSS selectors.
See the `CSSSelector` class for details.
:copyright: (c) 2007-2012 Ian Bicking and contributors.
See AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from cssselect.parser import (
parse,
Selector,
FunctionalPseudoElement,
SelectorError,
SelectorSyntaxError,
)
from cssselect.xpath import GenericTranslator, HTMLTranslator, ExpressionError
__all__ = (
"ExpressionError",
"FunctionalPseudoElement",
"GenericTranslator",
"HTMLTranslator",
"parse",
"Selector",
"SelectorError",
"SelectorSyntaxError",
)
VERSION = "1.2.0"
__version__ = VERSION