mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-28 22:37:44 +00:00
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):
|
class MySpider(BaseSpider):
|
||||||
name = 'myspider'
|
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]
|
self.start_urls = ['http://www.example.com/categories/%s' % category]
|
||||||
# ...
|
# ...
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user