mirror of https://github.com/scrapy/scrapy.git
removed unused module: scrapy.xpath.types
This commit is contained in:
parent
50fcc67278
commit
dfa4a4846c
|
|
@ -1,13 +1,9 @@
|
|||
"""
|
||||
The scrapy.xpath module provides useful classes for parsing HTML and XML
|
||||
The scrapy.xpath module provides useful classes for selecting HTML and XML
|
||||
documents using XPath. It requires libxml2 and its python bindings.
|
||||
|
||||
This parent module exports the classes most commonly used when building
|
||||
spiders, for convenience.
|
||||
|
||||
* XPath - a simple class to represent a XPath expression
|
||||
* XPathSelector - to extract data using XPaths (parses the entire response)
|
||||
"""
|
||||
|
||||
from scrapy.xpath.types import XPath
|
||||
from scrapy.xpath.selector import XPathSelector, XmlXPathSelector, HtmlXPathSelector
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
class XPath(object):
|
||||
"""A XPath expression"""
|
||||
|
||||
def __init__(self, xpath_expr):
|
||||
self.expr = xpath_expr
|
||||
|
||||
def __repr__(self):
|
||||
return "XPath(%s)" % repr(self.expr)
|
||||
|
||||
def __str__(self):
|
||||
return self.expr
|
||||
Loading…
Reference in New Issue