Skip to content

Commit

Permalink
Fixed mycrawler-redis _set_crawler method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmax committed Jul 6, 2015
1 parent f3468d4 commit 5236de0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example-project/example/spiders/mycrawler_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class MyCrawler(RedisMixin, CrawlSpider):
Rule(LinkExtractor(), callback='parse_page', follow=True),
)

def set_crawler(self, crawler):
CrawlSpider.set_crawler(self, crawler)
def _set_crawler(self, crawler):
CrawlSpider._set_crawler(self, crawler)
RedisMixin.setup_redis(self)

def parse_page(self, response):
Expand Down

0 comments on commit 5236de0

Please sign in to comment.