diff --git a/docs/topics/spiders.rst b/docs/topics/spiders.rst index 4e969498d..6586db668 100644 --- a/docs/topics/spiders.rst +++ b/docs/topics/spiders.rst @@ -61,7 +61,8 @@ Spiders receive arguments in their constructors:: class MySpider(BaseSpider): name = 'myspider' - def __init__(self, category=None): + def __init__(self, category=None, *args, **kwargs): + super(MySpider, self).__init__(*args, **kwargs) self.start_urls = ['http://www.example.com/categories/%s' % category] # ...