diff --git a/lib/resorts/timberline-lodge/index.js b/lib/resorts/timberline-lodge/index.js new file mode 100644 index 00000000..554b4a11 --- /dev/null +++ b/lib/resorts/timberline-lodge/index.js @@ -0,0 +1,13 @@ +module.exports = { + selector: '.lifts', // selector for lift information + filter: node => node.children, // optional - skip nodes for which filter retuturns nodes + 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) + } + } +}; diff --git a/lib/resorts/timberline-lodge/resort.json b/lib/resorts/timberline-lodge/resort.json new file mode 100644 index 00000000..fe43a427 --- /dev/null +++ b/lib/resorts/timberline-lodge/resort.json @@ -0,0 +1,15 @@ +{ + "name": "Timberline Lodge", + "url": { + "host": "https://www.timberlinelodge.com", + "pathname": "/conditions" + }, + "tags": [ + "Oregon" + ], + "ll": [ + -121.71, + 45.33 + ], + "twitter": "timberlinelodge" +} \ No newline at end of file diff --git a/test/resorts/example/timberline-lodge.html b/test/resorts/example/timberline-lodge.html new file mode 100644 index 00000000..2e0595b3 --- /dev/null +++ b/test/resorts/example/timberline-lodge.html @@ -0,0 +1,2376 @@ + + +
+Lifts | +Status | +Operating Hours | +
---|---|---|
STORMIN’ NORMAN | +
+ open
+ + 9:00am - 2:00pm + |
+ 9:00am - 2:00pm | +
MAGIC MILE | +
+ open
+ + 9:00am - 1:30pm + |
+ 9:00am - 1:30pm | +
PALMER | +
+ Under Construction
+ + 10:00am - 2:30pm + |
+ 10:00am - 2:30pm | +
Terrain | +Status | +Operating Hours | +
---|---|---|
BLOSSOM | +
+ closed
+ + 9:00am - 2:00pm + |
+ 9:00am - 2:00pm | +
CONWAY’S | +
+ closed
+ + 9:00am - 2:00pm + |
+ 9:00am - 2:00pm | +
Parking Lots | +Status | +Last Updated | +
---|---|---|
MAIN LOT | +
+ open
+ + updated: 7:00am + |
+ 7:00am | +
SALMON RIVER LOT | +
+ open
+ + updated: 7:00am + |
+ 7:00am | +
Timberline has been recording snow depths since 1949. See how current measurements stack up to years past.
+ +