コード例 #1
0
"""
Parsel lets you extract text from XML/HTML documents using XPath
or CSS selectors
"""

__author__ = 'Scrapy project'
__email__ = '*****@*****.**'
__version__ = '1.6.0'

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

xpathfuncs.setup()
コード例 #2
0
ファイル: __init__.py プロジェクト: scrapy/parsel
"""
Parsel lets you extract text from XML/HTML documents using XPath
or CSS selectors
"""

__author__ = 'Scrapy project'
__email__ = '*****@*****.**'
__version__ = '1.5.1'

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

xpathfuncs.setup()