Fixed ordering of super argument call.

This commit is contained in:
Dan 2013-07-16 14:50:10 -04:00
parent e12b689c4f
commit 1ca31244b0
1 changed files with 1 additions and 1 deletions

View File

@ -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`_.