From de48406f104faf73a04ed5dd3b0f7489def63716 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Thu, 6 Aug 2009 11:37:20 -0300 Subject: [PATCH] added 3 common content-types (for feeds) to ResponseTypes class --- scrapy/core/downloader/responsetypes/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scrapy/core/downloader/responsetypes/__init__.py b/scrapy/core/downloader/responsetypes/__init__.py index 4c09ebd83..5c9c2a4c7 100644 --- a/scrapy/core/downloader/responsetypes/__init__.py +++ b/scrapy/core/downloader/responsetypes/__init__.py @@ -16,6 +16,9 @@ class ResponseTypes(object): CLASSES = { 'text/html': 'scrapy.http.HtmlResponse', + 'application/atom+xml': 'scrapy.http.XmlResponse', + 'application/rdf+xml': 'scrapy.http.XmlResponse', + 'application/rss+xml': 'scrapy.http.XmlResponse', 'application/xhtml+xml': 'scrapy.http.HtmlResponse', 'application/xml': 'scrapy.http.XmlResponse', 'text/xml': 'scrapy.http.XmlResponse',