removed unused module: scrapy.xpath.types

This commit is contained in:
Pablo Hoffman 2009-08-10 10:23:42 -03:00
parent 50fcc67278
commit dfa4a4846c
2 changed files with 1 additions and 16 deletions

View File

@ -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

View File

@ -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