Skip to content

Commit

Permalink
add parser for Timberline Lodge
Browse files Browse the repository at this point in the history
see: #29
  • Loading branch information
pirxpilot committed May 19, 2020
1 parent 6d2b628 commit 8a2baed
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/resorts/timberline-lodge/index.js
Original file line number Diff line number Diff line change
@@ -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'
}
};

0 comments on commit 8a2baed

Please sign in to comment.