diff options
Diffstat (limited to 'myproject/myproject/spiders/shell.py')
-rw-r--r-- | myproject/myproject/spiders/shell.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/myproject/myproject/spiders/shell.py b/myproject/myproject/spiders/shell.py new file mode 100644 index 0000000..a342921 --- /dev/null +++ b/myproject/myproject/spiders/shell.py @@ -0,0 +1,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) |