From 8a2baede3d536193b61d787f0333bb53de89efe6 Mon Sep 17 00:00:00 2001 From: Damian Krzeminski Date: Tue, 19 May 2020 08:13:08 +0200 Subject: [PATCH] add parser for Timberline Lodge see: #29 --- lib/resorts/timberline-lodge/index.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/resorts/timberline-lodge/index.js b/lib/resorts/timberline-lodge/index.js index 554b4a11..755f5207 100644 --- a/lib/resorts/timberline-lodge/index.js +++ b/lib/resorts/timberline-lodge/index.js @@ -1,13 +1,7 @@ module.exports = { - selector: '.lifts', // selector for lift information - filter: node => node.children, // optional - skip nodes for which filter retuturns nodes + selector: '#lift_status table:first-child tbody tr', parse: { - name: '0/1', // example of a simple path descriptor - index, ',', '..', '+', '-' are supported - status: { // example of a compound descriptor child. attribute, regex, fn - can be specified - child: '+/1', - attribute: 'alt', - regex: /-([a-z]+)$/, - fn: s => s.slice(0, -3) - } + name: '0', + status: '1/0' } };