Scrapy code not printing anything on the terminal

Scrapy code not printing anything on the terminal

Why this script doesn’t print anything? I tried the same expression in the Scrapy Shell and it worked fine but not working in the spider.
Your feedback is highly appreciated…

# -*- coding: utf-8 -*-

import scrapy

class Sp2Spider(scrapy.Spider):

    name = 'sp2'

    allowed_domains = ['']

    start_urls = ['']

    def parse(self, response):

        for data in response.xpath('//table[@class="table table-striped"]/tbody/tr'):

            title = data.xpath('.//div[@class="pull-left"]/a/text()').get()

            link = data.urljoin(data.xpath('.//div[@class="pull-left"]/a/@href')).get()

            green = data.xpath('.//span[@class="label label-success label-mini"]/text()').get()

            blue = data.xpath('.//span[@class="label label-success label-mini label-info"]/text()').get()

            yield {

                'Title': title,

                'Link': link,

                'Green': green,

                'Blue': blue,