Skip to content

zytedata/duplicate-url-discarder-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7281048 · Feb 5, 2025

History

57 Commits
Feb 5, 2025
Nov 5, 2024
Nov 5, 2024
Jul 4, 2024
Nov 4, 2024
Nov 5, 2024
Jul 4, 2024
Nov 4, 2024
Nov 4, 2024
Nov 4, 2024
Feb 5, 2025

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).