Scrapy, a fast high-level web crawling & scraping framework for Python.
Update robotstxt.py
Wenbin Zhang4d5e5378bd2c
diff --git a/scrapy/downloadermiddlewares/robotstxt.py b/scrapy/downloadermiddlewares/robotstxt.pyindex c3dfa7819..4f3b5d64f 100644--- a/scrapy/downloadermiddlewares/robotstxt.py+++ b/scrapy/downloadermiddlewares/robotstxt.py@@ -45,7 +45,7 @@ class RobotsTxtMiddleware(object):to_native_str(self._useragent), request.url):logger.debug("Forbidden by robots.txt: %(request)s",{'request': request}, extra={'spider': spider})- raise IgnoreRequest()+ raise IgnoreRequest("Forbidden by robots.txt")def robot_parser(self, request, spider):url = urlparse_cached(request)