aboutsummaryrefslogtreecommitdiff
path: root/myproject/myproject/spiders/shell.py
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2018-03-19 21:30:32 -0600
committerCody Hiar <codyfh@gmail.com>2018-03-19 21:30:32 -0600
commit3f5efcb91afc2e6d013800132b92e4a6c297f662 (patch)
tree3de0b3c6804ec51d5784d788b8df450eae208f1a /myproject/myproject/spiders/shell.py
Initial commit of working files
Diffstat (limited to 'myproject/myproject/spiders/shell.py')
-rw-r--r--myproject/myproject/spiders/shell.py13
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)