From 0f5bfac8b8bbdfe6f391d9ab07fc7f8d70f12095 Mon Sep 17 00:00:00 2001 From: Dan Spencer Date: Tue, 8 Sep 2020 11:15:18 +0000 Subject: [PATCH] Removed scrape sensors --- configuration/sensor/scrape.yaml | 174 ------------------------------- 1 file changed, 174 deletions(-) delete mode 100644 configuration/sensor/scrape.yaml diff --git a/configuration/sensor/scrape.yaml b/configuration/sensor/scrape.yaml deleted file mode 100644 index 4a13c13..0000000 --- a/configuration/sensor/scrape.yaml +++ /dev/null @@ -1,174 +0,0 @@ -- platform: scrape - resource: https://www.thekennelclub.org.uk/services/public/findapuppy/display.aspx?breed=4096&area=0 - name: Kennel Club Miniature Schnauzer - select: '.data2' - scan_interval: 3600 - value_template: |- - {% set dogs = value.split('\n') - | reject("eq", "") - | reject("eq", "NameDate Visit ApprovedTown/RegionDate Of Birth") - | list - -%} - {% for dog in dogs -%} -   {% set breeder = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\1" - ) - | truncate(20) -   -%} -   {% set place = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\3" - ) - | truncate(20) -   -%} -   {% set born = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\4" - ) -   -%} -   {{ breeder }}|{{ place }}|{{ born }} - {% endfor %} - -- platform: scrape - resource: https://www.thekennelclub.org.uk/services/public/findapuppy/display.aspx?breed=4098&area=0 - name: Kennel Club Miniature Poodle - select: '.data2' - scan_interval: 3600 - value_template: |- - {% set dogs = value.split('\n') - | reject("eq", "") - | reject("eq", "NameDate Visit ApprovedTown/RegionDate Of Birth") - | list - -%} - {% for dog in dogs -%} -   {% set breeder = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\1" - ) - | truncate(20) -   -%} -   {% set place = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\3" - ) - | truncate(20) -   -%} -   {% set born = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\4" - ) -   -%} -   {{ breeder }}|{{ place }}|{{ born }} - {% endfor %} - -- platform: scrape - resource: https://www.thekennelclub.org.uk/services/public/findapuppy/display.aspx?breed=6254&area=0 - name: Kennel Club Havanese - select: '.data2' - scan_interval: 3600 - value_template: |- - {% set dogs = value.split('\n') - | reject("eq", "") - | reject("eq", "NameDate Visit ApprovedTown/RegionDate Of Birth") - | list - -%} - {% for dog in dogs -%} -   {% set breeder = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\1" - ) - | truncate(20) -   -%} -   {% set place = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\3" - ) - | truncate(20) -   -%} -   {% set born = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\4" - ) -   -%} -   {{ breeder }}|{{ place }}|{{ born }} - {% endfor %} - -- platform: scrape - resource: https://www.thekennelclub.org.uk/services/public/findapuppy/display.aspx?breed=4102&area=0 - name: Kennel Club Shih Tzu - select: '.data2' - scan_interval: 3600 - value_template: |- - {% set dogs = value.split('\n') - | reject("eq", "") - | reject("eq", "NameDate Visit ApprovedTown/RegionDate Of Birth") - | list - -%} - {% for dog in dogs -%} -   {% set breeder = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\1" - ) - | truncate(20) -   -%} -   {% set place = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\3" - ) - | truncate(20) -   -%} -   {% set born = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\4" - ) -   -%} -   {{ breeder }}|{{ place }}|{{ born }} - {% endfor %} - -- platform: scrape - resource: https://www.thekennelclub.org.uk/services/public/findapuppy/display.aspx?breed=6149&area=0 - name: Kennel Club Cavalier King Charles Spaniel - select: '.data2' - scan_interval: 3600 - value_template: |- - {% set dogs = value.split('\n') - | reject("eq", "") - | reject("eq", "NameDate Visit ApprovedTown/RegionDate Of Birth") - | list - -%} - {% for dog in dogs -%} -   {% set breeder = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\1" - ) - | truncate(20) -   -%} -   {% set place = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\3" - ) - | truncate(20) -   -%} -   {% set born = dog - | regex_replace( -   "([a-zA-Z\s\.&]*)([//\d-]*)([[a-zA-Z\s\.&,-]*)([//\d-]*)", -   "\\4" - ) -   -%} -   {{ breeder }}|{{ place }}|{{ born }} - {% endfor %} \ No newline at end of file