mirror of https://github.com/scrapy/scrapy.git
Fixed ordering of super argument call.
This commit is contained in:
parent
e12b689c4f
commit
1ca31244b0
|
|
@ -62,9 +62,9 @@ Spiders receive arguments in their constructors::
|
|||
name = 'myspider'
|
||||
|
||||
def __init__(self, category=None, *args, **kwargs):
|
||||
super(MySpider, self).__init__(*args, **kwargs)
|
||||
self.start_urls = ['http://www.example.com/categories/%s' % category]
|
||||
# ...
|
||||
super(MySpider, self).__init__(*args, **kwargs)
|
||||
|
||||
Spider arguments can also be passed through the Scrapyd ``schedule.json`` API.
|
||||
See `Scrapyd documentation`_.
|
||||
|
|
|
|||
Loading…
Reference in New Issue