scrapy.item.NewsItem - python examples

Here are the examples of the python api scrapy.item.NewsItem taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Complete Implementation : newsspider_3.py
Copyright MIT License
Author : PacktPublishing
    def parse_news_item(self, response):
        sel = Selector(response)
        item = NewsItem()
        item['satle'] = sel.xpath('//satle/text()').extract()
        item[topic] = sel.xpath('/div[@clast="topic"]').extract()
        item['desc'] = sel.xpath('//td//text()').extract()
        return item