Skip to content

Commit

Permalink
Upgrading to scrapy 0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
lmorillas committed May 27, 2014
1 parent a295b18 commit 8f837ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
*.py[cod]
*.swp
*~

.ropeproject

Expand Down
6 changes: 3 additions & 3 deletions README.rst
Expand Up @@ -68,9 +68,9 @@ Enable the components in your `settings.py`:
SCHEDULER_IDLE_BEFORE_CLOSE = 10
# Store scraped item in redis for post-processing.
ITEM_PIPELINES = [
'scrapy_redis.pipelines.RedisPipeline',
]
ITEM_PIPELINES = {
'scrapy_redis.pipelines.RedisPipeline': 300
}
# Specify the host and port to use when connecting to Redis (optional).
REDIS_HOST = 'localhost'
Expand Down
4 changes: 2 additions & 2 deletions scrapy_redis/spiders.py
Expand Up @@ -2,7 +2,7 @@

from scrapy import signals
from scrapy.exceptions import DontCloseSpider
from scrapy.spider import BaseSpider
from scrapy.spider import Spider


class RedisMixin(object):
Expand Down Expand Up @@ -46,7 +46,7 @@ def item_scraped(self, *args, **kwargs):
self.schedule_next_request()


class RedisSpider(RedisMixin, BaseSpider):
class RedisSpider(RedisMixin, Spider):
"""Spider that reads urls from redis queue when idle."""

def set_crawler(self, crawler):
Expand Down

0 comments on commit 8f837ee

Please sign in to comment.