<commit_before>Redis-based components for Scrapy
=================================

This is a initial work on Scrapy-Redis integration, not production-tested.
Use it at your own risk!

Features:

* Distributed crawling/scraping
* Distributed post-processing

Requirements:

* Scrapy >= 0.13 (development version)
* redis-py (tested on 2.4.9)
* redis server (tested on 2.2-2.4)

Available Scrapy components:

* Scheduler
* Duplication Filter
* Item Pipeline


Usage
-----

In your settings.py:

.. code-block:: python

  # enables scheduling storing requests queue in redis<commit_msg>added installation notes.<commit_after>Redis-based components for Scrapy
=================================

This is a initial work on Scrapy-Redis integration, not production-tested.
Use it at your own risk!

Features:

* Distributed crawling/scraping
* Distributed post-processing

Requirements:

* Scrapy >= 0.13 (development version)
* redis-py (tested on 2.4.9)
* redis server (tested on 2.2-2.4)

Available Scrapy components:

* Scheduler
* Duplication Filter
* Item Pipeline


Installation
------------

From `pypi`::

  $ pip install scrapy-redis

From `github`::

  $ git clone https://github.com/darkrho/scrapy-redis.git
  $ cd scrapy-redis
  $ python setup.py install


Usage
-----

Enable the components in your `settings.py`:

.. code-block:: python

  # enables scheduling storing requests queue in redis
{'fraction_non_alphanumeric': 0.145610278372591, 'fraction_numerical': 0.014275517487508922, 'mean_word_length': 4.007142857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5025234', 'n_tokens_mistral': 460, 'n_tokens_neox': 411, 'n_words': 140}