-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsteam.json
More file actions
61 lines (61 loc) · 2.1 KB
/
steam.json
File metadata and controls
61 lines (61 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[
{
"name": "steam",
"matchURL": "store\\.steampowered\\.com/app/",
"enabled": true,
"destinations": [
{
"sender": "notion",
"databaseId": "YOUR_DATABASE_ID",
"token": "YOUR_TOKEN"
},
{ "sender": "yamlfrontmatter" },
{ "sender": "webhook", "url": "YOUR_WEBHOOK_URL" }
],
"entries": {
"Title": {
"css": "div#appHubAppName"
},
"Rating": {
"xpath": "//div[@itemprop='aggregateRating']/@data-tooltip-html",
"transformations": [["matchRegex", "\\d+%"], ["parseInt"]]
},
"Review Count": {
"xpath": "//div[@itemprop='aggregateRating']/@data-tooltip-html",
"transformations": [
["replaceAll", ",", ""],
["matchRegex", "\\d+(?!%)\\s"],
["parseInt"]
]
},
"Developer": "//div[@class='dev_row'][1]/a",
"Publisher": "//div[@class='dev_row'][2]/a",
"Release Year": {
"xpath": "//div[@class='release_date']/div[@class='date']",
"transformations": [["matchRegex", "\\d{4}"], ["parseInt"]]
},
"URL": {
"transformations": [["getCurrentURL"]]
},
"Date Saved": {
"transformations": [["getCurrentDate"]]
},
"Original Price": {
"xpath": "(//div[contains(@class, 'game_area_purchase_game')])[1]//div[contains(@class,'game_purchase_price')]/text() | (//div[@class='discount_original_price'])[1]",
"transformations": [["matchRegex", "\\d+\\.\\d+"], ["parseFloat"]]
},
"Purchase Price": {
"xpath": "(//div[@class='discount_final_price'])[1] | (//div[contains(@class, 'game_area_purchase_game')])[1]//div[contains(@class,'game_purchase_price')]/text()",
"transformations": [["matchRegex", "\\d+\\.\\d+"], ["parseFloat"]]
},
"Discount": {
"xpath": "(//div[contains(@class, 'game_area_purchase_game')])[1]//div[@class='discount_pct']",
"transformations": [
["matchRegex", "\\d+"],
["parseInt"],
["divideBy", 100]
]
}
}
}
]