File: __init__.py

package info (click to toggle)
python-parsel 1.7.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 440 kB
  • sloc: python: 2,203; makefile: 214; xml: 15; sh: 8
file content (20 lines) | stat: -rw-r--r-- 427 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.7.0"
__all__ = [
    "Selector",
    "SelectorList",
    "css2xpath",
    "xpathfuncs",
]

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

xpathfuncs.setup()