Scrapy, a fast high-level web crawling & scraping framework for Python.
Added BaseSpider objects to trackref
Pablo Hoffmana36909a3f9ff
diff --git a/scrapy/spider/models.py b/scrapy/spider/models.pyindex 1ab8b3d6e..9210464a3 100644--- a/scrapy/spider/models.py+++ b/scrapy/spider/models.py@@ -9,6 +9,7 @@ from twisted.plugin import IPluginfrom scrapy import logfrom scrapy.http import Requestfrom scrapy.utils.misc import arg_to_iter+from scrapy.utils.trackref import object_refdef _valid_domain_name(obj):"""Check the domain name specified is valid"""@@ -40,7 +41,7 @@ class ISpider(Interface, IPlugin) :invariant(_valid_domain_name)invariant(_valid_download_delay)-class BaseSpider(object):+class BaseSpider(object_ref):"""Base class for scrapy spiders. All spiders must inherit from thisclass."""