from scrapy.selector import XmlXPathSelector
import lxml.etree as etree
request = Request(link, callback=self.parse_resp)
yield request

def parse_resp(self, response):
    json = response.body
json_dict = json.loads(json)
xml = dicttoxml.dicttoxml(json_dict)
xml = etree.fromstring(xml)
xml = XmlXPathSelector(text=xml)
data = xml.select(".//*[@id='count']/text()").extract()
return data
Scrapy анализирует вывод JSON