File: __init__.py

package info (click to toggle)
python-parsel 1.10.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 472 kB
  • sloc: python: 2,613; makefile: 159; xml: 15
file content (20 lines) | stat: -rw-r--r-- 428 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
Parsel lets you extract text from XML/HTML documents using XPath
or CSS selectors
"""

__author__ = "Scrapy project"
__email__ = "info@scrapy.org"
__version__ = "1.10.0"
__all__ = [
    "Selector",
    "SelectorList",
    "css2xpath",
    "xpathfuncs",
]

from parsel import xpathfuncs  # NOQA
from parsel.csstranslator import css2xpath  # NOQA
from parsel.selector import Selector, SelectorList  # NOQA

xpathfuncs.setup()