Skip to content

zytedata/duplicate-url-discarder-rules

Repository files navigation

duplicate-url-discarder-rules

PyPI Version Supported Python Versions Build Status:

This contains rules for https://github.com/zytedata/duplicate-url-discarder.

Quick Start

Installation

pip install duplicate-url-discarder-rules

Using

The rules can be imported via:

from duplicate_url_discarder_rules import RULE_PATHS

It can then be used to configure the DUD_LOAD_RULE_PATHS setting of duplicate-url-discarder.

RULE_PATHS contains all files shipped in this package. If you want to reduce the number of loaded rules to improve performance you can instead use one or more of the following variables:

  • RULE_PATHS_COMMON: rules not specific to any data type.
  • RULE_PATHS_ARTICLE: rules for article websites.
  • RULE_PATHS_PRODUCT: rules for e-commerce websites.

As all of them are lists, you can combine them (e.g. RULE_PATHS_COMMON + RULE_PATHS_PRODUCT).