Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

default xpath selector was html

Daniel Grañae4d6e2eb3170
diff --git a/scrapy/selector/lxmlsel.py b/scrapy/selector/lxmlsel.py
index b37b5d74c..2052f0eaa 100644
--- a/scrapy/selector/lxmlsel.py
+++ b/scrapy/selector/lxmlsel.py
@@ -10,7 +10,7 @@ __all__ = ['HtmlXPathSelector', 'XmlXPathSelector', 'XPathSelector',
class XPathSelector(Selector):
__slots__ = ()
- default_contenttype = 'xml'
+ default_contenttype = 'html'
class XmlXPathSelector(XPathSelector):