Skip to content

Commit d693928

Browse files
committed
Merge branch 'LiorMad/main'
2 parents ba4b7f1 + 9cd3b52 commit d693928

File tree

4 files changed

+900
-0
lines changed

4 files changed

+900
-0
lines changed

lib/resorts/mtpeter/index.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
selector: '#content > div > div:nth-child(4) > div > table > tbody > tr', // selector for all <tr> elements under <tbody>
3+
parse: {
4+
filter: node => node.children.length > 0, // only process <tr> elements with children
5+
name: '0', // The first <td> in each <tr> (the name of the lift)
6+
status: {
7+
child: '1' // The second <td> in each <tr> (the status of the lift)
8+
}
9+
}
10+
};

lib/resorts/mtpeter/resort.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "Mount Peter",
3+
"url": {
4+
"host": "https://mtpeter.com",
5+
"pathname": "/snow-report"
6+
},
7+
"tags": [
8+
"New York"
9+
],
10+
"ll": [
11+
-74.28,
12+
41.26
13+
],
14+
"opening": "1936-01-01",
15+
"twitter": "MountPeter",
16+
"noaa": "OKX/20,58"
17+
}

0 commit comments

Comments
 (0)