aboutsummaryrefslogtreecommitdiff
path: root/myproject/myproject/spiders/shell.py
blob: a342921b20e219260e220e0f8c40ed639cbc6515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-
"""Invoke the scrapy shell from the spider."""
import scrapy


class ShellSpider(scrapy.Spider):
    name = 'shell'
    allowed_domains = ['codyhiar.com']
    start_urls = ['http://codyhiar.com/']

    def parse(self, response):
        from scrapy.shell import inspect_response
        inspect_response(response, self)