mirror of https://github.com/scrapy/scrapy.git
Merge pull request #350 from dellis23/master
This pull request fixes #349
This commit is contained in:
commit
d51f1ff33d
|
|
@ -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]
|
||||
# ...
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue