Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

use handle_httpstatus_all=True in scrapy shell

Pablo Hoffman5275343fa194
diff --git a/scrapy/shell.py b/scrapy/shell.py
index d3f0654eb..acfe370ca 100644
--- a/scrapy/shell.py
+++ b/scrapy/shell.py
@@ -74,6 +74,7 @@ class Shell(object):
else:
url = any_to_uri(request_or_url)
request = Request(url, dont_filter=True)
+ request.meta['handle_httpstatus_all'] = True
response = None
response, spider = threads.blockingCallFromThread(reactor, \
self._schedule, request, spider)