cs2tracker 2.1.13__py3-none-any.whl → 2.1.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cs2tracker might be problematic. Click here for more details.
- cs2tracker/_version.py +2 -2
- cs2tracker/app/__init__.py +0 -3
- cs2tracker/app/app.py +283 -0
- cs2tracker/app/editor_frame.py +354 -158
- cs2tracker/app/history_frame.py +61 -0
- cs2tracker/app/scraper_frame.py +34 -11
- cs2tracker/config.py +263 -0
- cs2tracker/constants.py +58 -321
- cs2tracker/data/config.ini +157 -154
- cs2tracker/data/convert_inventory.js +108 -28
- cs2tracker/data/get_inventory.js +96 -32
- cs2tracker/logs.py +143 -0
- cs2tracker/main.py +4 -19
- cs2tracker/scraper/__init__.py +0 -9
- cs2tracker/scraper/background_task.py +1 -1
- cs2tracker/scraper/discord_notifier.py +34 -32
- cs2tracker/scraper/parser.py +189 -0
- cs2tracker/scraper/scraper.py +166 -246
- cs2tracker/util/__init__.py +0 -9
- cs2tracker/util/currency_conversion.py +84 -0
- cs2tracker/util/padded_console.py +24 -0
- cs2tracker/util/tkinter.py +55 -0
- {cs2tracker-2.1.13.dist-info → cs2tracker-2.1.15.dist-info}/METADATA +6 -6
- cs2tracker-2.1.15.dist-info/RECORD +31 -0
- cs2tracker/app/application.py +0 -255
- cs2tracker/util/price_logs.py +0 -100
- cs2tracker/util/validated_config.py +0 -164
- cs2tracker-2.1.13.dist-info/RECORD +0 -27
- {cs2tracker-2.1.13.dist-info → cs2tracker-2.1.15.dist-info}/WHEEL +0 -0
- {cs2tracker-2.1.13.dist-info → cs2tracker-2.1.15.dist-info}/entry_points.txt +0 -0
- {cs2tracker-2.1.13.dist-info → cs2tracker-2.1.15.dist-info}/licenses/LICENSE +0 -0
- {cs2tracker-2.1.13.dist-info → cs2tracker-2.1.15.dist-info}/top_level.txt +0 -0
cs2tracker/data/config.ini
CHANGED
|
@@ -1,204 +1,207 @@
|
|
|
1
|
+
[App Settings]
|
|
2
|
+
use_proxy ~ False
|
|
3
|
+
discord_notifications ~ False
|
|
4
|
+
conversion_currency ~ EUR
|
|
5
|
+
|
|
1
6
|
[User Settings]
|
|
2
7
|
proxy_api_key ~
|
|
3
8
|
discord_webhook_url ~
|
|
4
9
|
|
|
5
|
-
[
|
|
10
|
+
[Skins]
|
|
11
|
+
|
|
12
|
+
[Stickers]
|
|
6
13
|
|
|
7
14
|
[Cases]
|
|
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
|
-
|
|
15
|
+
https://steamcommunity.com/market/listings/730/CS%3AGO%20Weapon%20Case ~ 0
|
|
16
|
+
https://steamcommunity.com/market/listings/730/CS%3AGO%20Weapon%20Case%202 ~ 0
|
|
17
|
+
https://steamcommunity.com/market/listings/730/CS%3AGO%20Weapon%20Case%203 ~ 0
|
|
18
|
+
https://steamcommunity.com/market/listings/730/CS20%20Case ~ 0
|
|
19
|
+
https://steamcommunity.com/market/listings/730/Chroma%202%20Case ~ 0
|
|
20
|
+
https://steamcommunity.com/market/listings/730/Chroma%203%20Case ~ 0
|
|
21
|
+
https://steamcommunity.com/market/listings/730/Chroma%20Case ~ 0
|
|
22
|
+
https://steamcommunity.com/market/listings/730/Clutch%20Case ~ 0
|
|
23
|
+
https://steamcommunity.com/market/listings/730/Danger%20Zone%20Case ~ 0
|
|
24
|
+
https://steamcommunity.com/market/listings/730/Dreams%20%26%20Nightmares%20Case ~ 0
|
|
25
|
+
https://steamcommunity.com/market/listings/730/Falchion%20Case ~ 0
|
|
26
|
+
https://steamcommunity.com/market/listings/730/Fever%20Case ~ 0
|
|
27
|
+
https://steamcommunity.com/market/listings/730/Fracture%20Case ~ 0
|
|
28
|
+
https://steamcommunity.com/market/listings/730/Gallery%20Case ~ 0
|
|
29
|
+
https://steamcommunity.com/market/listings/730/Gamma%202%20Case ~ 0
|
|
30
|
+
https://steamcommunity.com/market/listings/730/Gamma%20Case ~ 0
|
|
31
|
+
https://steamcommunity.com/market/listings/730/Glove%20Case ~ 0
|
|
32
|
+
https://steamcommunity.com/market/listings/730/Horizon%20Case ~ 0
|
|
33
|
+
https://steamcommunity.com/market/listings/730/Huntsman%20Weapon%20Case ~ 0
|
|
34
|
+
https://steamcommunity.com/market/listings/730/Kilowatt%20Case ~ 0
|
|
35
|
+
https://steamcommunity.com/market/listings/730/Operation%20Bravo%20Case ~ 0
|
|
36
|
+
https://steamcommunity.com/market/listings/730/Operation%20Breakout%20Weapon%20Case ~ 0
|
|
37
|
+
https://steamcommunity.com/market/listings/730/Operation%20Broken%20Fang%20Case ~ 0
|
|
38
|
+
https://steamcommunity.com/market/listings/730/Operation%20Hydra%20Case ~ 0
|
|
39
|
+
https://steamcommunity.com/market/listings/730/Operation%20Phoenix%20Weapon%20Case ~ 0
|
|
40
|
+
https://steamcommunity.com/market/listings/730/Operation%20Riptide%20Case ~ 0
|
|
41
|
+
https://steamcommunity.com/market/listings/730/Operation%20Vanguard%20Weapon%20Case ~ 0
|
|
42
|
+
https://steamcommunity.com/market/listings/730/Operation%20Wildfire%20Case ~ 0
|
|
43
|
+
https://steamcommunity.com/market/listings/730/Prisma%202%20Case ~ 0
|
|
44
|
+
https://steamcommunity.com/market/listings/730/Prisma%20Case ~ 0
|
|
45
|
+
https://steamcommunity.com/market/listings/730/Recoil%20Case ~ 0
|
|
46
|
+
https://steamcommunity.com/market/listings/730/Revolution%20Case ~ 0
|
|
47
|
+
https://steamcommunity.com/market/listings/730/Revolver%20Case ~ 0
|
|
48
|
+
https://steamcommunity.com/market/listings/730/Shadow%20Case ~ 0
|
|
49
|
+
https://steamcommunity.com/market/listings/730/Shattered%20Web%20Case ~ 0
|
|
50
|
+
https://steamcommunity.com/market/listings/730/Snakebite%20Case ~ 0
|
|
51
|
+
https://steamcommunity.com/market/listings/730/Spectrum%202%20Case ~ 0
|
|
52
|
+
https://steamcommunity.com/market/listings/730/Spectrum%20Case ~ 0
|
|
53
|
+
https://steamcommunity.com/market/listings/730/Winter%20Offensive%20Weapon%20Case ~ 0
|
|
54
|
+
https://steamcommunity.com/market/listings/730/eSports%202013%20Case ~ 0
|
|
55
|
+
https://steamcommunity.com/market/listings/730/eSports%202013%20Winter%20Case ~ 0
|
|
56
|
+
https://steamcommunity.com/market/listings/730/eSports%202014%20Summer%20Case ~ 0
|
|
50
57
|
|
|
51
58
|
[Katowice 2014 Sticker Capsule]
|
|
52
|
-
|
|
53
|
-
|
|
59
|
+
https://steamcommunity.com/market/listings/730/EMS%20Katowice%202014%20Legends ~ 0
|
|
60
|
+
https://steamcommunity.com/market/listings/730/EMS%20Katowice%202014%20Challengers ~ 0
|
|
54
61
|
|
|
55
62
|
[Cologne 2014 Sticker Capsule]
|
|
56
|
-
|
|
57
|
-
|
|
63
|
+
https://steamcommunity.com/market/listings/730/ESL%20One%20Cologne%202014%20Legends ~ 0
|
|
64
|
+
https://steamcommunity.com/market/listings/730/ESL%20One%20Cologne%202014%20Challengers ~ 0
|
|
58
65
|
|
|
59
66
|
[DreamHack 2014 Sticker Capsule]
|
|
60
|
-
|
|
67
|
+
https://steamcommunity.com/market/listings/730/DreamHack%202014%20Legends%20%28Holo-Foil%29 ~ 0
|
|
61
68
|
|
|
62
69
|
[Katowice 2015 Sticker Capsule]
|
|
63
|
-
|
|
64
|
-
|
|
70
|
+
https://steamcommunity.com/market/listings/730/ESL%20One%20Katowice%202015%20Legends%20%28Holo-Foil%29 ~ 0
|
|
71
|
+
https://steamcommunity.com/market/listings/730/ESL%20One%20Katowice%202015%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
65
72
|
|
|
66
73
|
[Cologne 2015 Sticker Capsule]
|
|
67
|
-
|
|
68
|
-
|
|
74
|
+
https://steamcommunity.com/market/listings/730/ESL%20One%20Cologne%202015%20Legends%20%28Foil%29 ~ 0
|
|
75
|
+
https://steamcommunity.com/market/listings/730/ESL%20One%20Cologne%202015%20Challengers%20%28Foil%29 ~ 0
|
|
69
76
|
|
|
70
77
|
[Cluj-Napoca 2015 Sticker Capsule]
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
https://steamcommunity.com/market/listings/730/DreamHack%20Cluj-Napoca%202015%20Legends%20%28Foil%29 ~ 0
|
|
79
|
+
https://steamcommunity.com/market/listings/730/DreamHack%20Cluj-Napoca%202015%20Challengers%20%28Foil%29 ~ 0
|
|
80
|
+
https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Legends%20%28Foil%29%20%7C%20Cluj-Napoca%202015 ~ 0
|
|
81
|
+
https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Challengers%20%28Foil%29%20%7C%20Cluj-Napoca%202015 ~ 0
|
|
75
82
|
|
|
76
83
|
[Columbus 2016 Sticker Capsule]
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
84
|
+
https://steamcommunity.com/market/listings/730/MLG%20Columbus%202016%20Legends%20%28Holo-Foil%29 ~ 0
|
|
85
|
+
https://steamcommunity.com/market/listings/730/MLG%20Columbus%202016%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
86
|
+
https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Legends%20%28Foil%29%20%7C%20MLG%20Columbus%202016 ~ 0
|
|
87
|
+
https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Challengers%20%28Foil%29%20%7C%20MLG%20Columbus%202016 ~ 0
|
|
81
88
|
|
|
82
89
|
[Cologne 2016 Sticker Capsule]
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
90
|
+
https://steamcommunity.com/market/listings/730/Cologne%202016%20Legends%20%28Holo-Foil%29 ~ 0
|
|
91
|
+
https://steamcommunity.com/market/listings/730/Cologne%202016%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
92
|
+
https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Legends%20%28Foil%29%20%7C%20Cologne%202016 ~ 0
|
|
93
|
+
https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Challengers%20%28Foil%29%20%7C%20Cologne%202016 ~ 0
|
|
87
94
|
|
|
88
95
|
[Atlanta 2017 Sticker Capsule]
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
96
|
+
https://steamcommunity.com/market/listings/730/Atlanta%202017%20Legends%20%28Holo-Foil%29 ~ 0
|
|
97
|
+
https://steamcommunity.com/market/listings/730/Atlanta%202017%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
98
|
+
https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Legends%20%28Foil%29%20%7C%20Atlanta%202017 ~ 0
|
|
99
|
+
https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Challengers%20%28Foil%29%20%7C%20Atlanta%202017 ~ 0
|
|
93
100
|
|
|
94
101
|
[Krakow 2017 Sticker Capsule]
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
102
|
+
https://steamcommunity.com/market/listings/730/Krakow%202017%20Legends%20%28Holo-Foil%29 ~ 0
|
|
103
|
+
https://steamcommunity.com/market/listings/730/Krakow%202017%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
104
|
+
https://steamcommunity.com/market/listings/730/Krakow%202017%20Legends%20Autograph%20Capsule ~ 0
|
|
105
|
+
https://steamcommunity.com/market/listings/730/Krakow%202017%20Challengers%20Autograph%20Capsule ~ 0
|
|
99
106
|
|
|
100
107
|
[Boston 2018 Sticker Capsule]
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
https://steamcommunity.com/market/listings/730/Boston%202018%20Legends%20%28Holo-Foil%29 ~ 0
|
|
109
|
+
https://steamcommunity.com/market/listings/730/Boston%202018%20Minor%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
110
|
+
https://steamcommunity.com/market/listings/730/Boston%202018%20Returning%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
111
|
+
https://steamcommunity.com/market/listings/730/Boston%202018%20Attending%20Legends%20%28Holo-Foil%29 ~ 0
|
|
112
|
+
https://steamcommunity.com/market/listings/730/Boston%202018%20Minor%20Challengers%20with%20Flash%20Gaming%20%28Holo-Foil%29 ~ 0
|
|
113
|
+
https://steamcommunity.com/market/listings/730/Boston%202018%20Legends%20Autograph%20Capsule ~ 0
|
|
114
|
+
https://steamcommunity.com/market/listings/730/Boston%202018%20Minor%20Challengers%20Autograph%20Capsule ~ 0
|
|
115
|
+
https://steamcommunity.com/market/listings/730/Boston%202018%20Returning%20Challengers%20Autograph%20Capsule ~ 0
|
|
116
|
+
https://steamcommunity.com/market/listings/730/Boston%202018%20Attending%20Legends%20Autograph%20Capsule ~ 0
|
|
117
|
+
https://steamcommunity.com/market/listings/730/Boston%202018%20Minor%20Challengers%20with%20Flash%20Gaming%20Autograph%20Capsule ~ 0
|
|
111
118
|
|
|
112
119
|
[London 2018 Sticker Capsule]
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
120
|
+
https://steamcommunity.com/market/listings/730/London%202018%20Legends%20%28Holo-Foil%29 ~ 0
|
|
121
|
+
https://steamcommunity.com/market/listings/730/London%202018%20Minor%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
122
|
+
https://steamcommunity.com/market/listings/730/London%202018%20Returning%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
123
|
+
https://steamcommunity.com/market/listings/730/London%202018%20Legends%20Autograph%20Capsule ~ 0
|
|
124
|
+
https://steamcommunity.com/market/listings/730/London%202018%20Minor%20Challengers%20Autograph%20Capsule ~ 0
|
|
125
|
+
https://steamcommunity.com/market/listings/730/London%202018%20Returning%20Challengers%20Autograph%20Capsule ~ 0
|
|
119
126
|
|
|
120
127
|
[Katowice 2019 Sticker Capsule]
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
128
|
+
https://steamcommunity.com/market/listings/730/Katowice%202019%20Legends%20%28Holo-Foil%29 ~ 0
|
|
129
|
+
https://steamcommunity.com/market/listings/730/Katowice%202019%20Minor%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
130
|
+
https://steamcommunity.com/market/listings/730/Katowice%202019%20Returning%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
131
|
+
https://steamcommunity.com/market/listings/730/Katowice%202019%20Legends%20Autograph%20Capsule ~ 0
|
|
132
|
+
https://steamcommunity.com/market/listings/730/Katowice%202019%20Minor%20Challengers%20Autograph%20Capsule ~ 0
|
|
133
|
+
https://steamcommunity.com/market/listings/730/Katowice%202019%20Returning%20Challengers%20Autograph%20Capsule ~ 0
|
|
127
134
|
|
|
128
135
|
[Berlin 2019 Sticker Capsule]
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
https://steamcommunity.com/market/listings/730/Berlin%202019%20Legends%20%28Holo-Foil%29 ~ 0
|
|
137
|
+
https://steamcommunity.com/market/listings/730/Berlin%202019%20Minor%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
138
|
+
https://steamcommunity.com/market/listings/730/Berlin%202019%20Returning%20Challengers%20%28Holo-Foil%29 ~ 0
|
|
139
|
+
https://steamcommunity.com/market/listings/730/Berlin%202019%20Legends%20Autograph%20Capsule ~ 0
|
|
140
|
+
https://steamcommunity.com/market/listings/730/Berlin%202019%20Minor%20Challengers%20Autograph%20Capsule ~ 0
|
|
141
|
+
https://steamcommunity.com/market/listings/730/Berlin%202019%20Returning%20Challengers%20Autograph%20Capsule ~ 0
|
|
135
142
|
|
|
136
143
|
[2020 RMR Sticker Capsule]
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
144
|
+
https://steamcommunity.com/market/listings/730/2020%20RMR%20Legends ~ 0
|
|
145
|
+
https://steamcommunity.com/market/listings/730/2020%20RMR%20Challengers ~ 0
|
|
146
|
+
https://steamcommunity.com/market/listings/730/2020%20RMR%20Contenders ~ 0
|
|
140
147
|
|
|
141
148
|
[Stockholm 2021 Sticker Capsule]
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
149
|
+
https://steamcommunity.com/market/listings/730/Stockholm%202021%20Legends%20Sticker%20Capsule ~ 0
|
|
150
|
+
https://steamcommunity.com/market/listings/730/Stockholm%202021%20Challengers%20Sticker%20Capsule ~ 0
|
|
151
|
+
https://steamcommunity.com/market/listings/730/Stockholm%202021%20Contenders%20Sticker%20Capsule ~ 0
|
|
152
|
+
https://steamcommunity.com/market/listings/730/Stockholm%202021%20Champions%20Autograph%20Capsule ~ 0
|
|
153
|
+
https://steamcommunity.com/market/listings/730/Stockholm%202021%20Finalists%20Autograph%20Capsule ~ 0
|
|
147
154
|
|
|
148
155
|
[Antwerp 2022 Sticker Capsule]
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
+
https://steamcommunity.com/market/listings/730/Antwerp%202022%20Legends%20Sticker%20Capsule ~ 0
|
|
157
|
+
https://steamcommunity.com/market/listings/730/Antwerp%202022%20Challengers%20Sticker%20Capsule ~ 0
|
|
158
|
+
https://steamcommunity.com/market/listings/730/Antwerp%202022%20Contenders%20Sticker%20Capsule ~ 0
|
|
159
|
+
https://steamcommunity.com/market/listings/730/Antwerp%202022%20Champions%20Autograph%20Capsule ~ 0
|
|
160
|
+
https://steamcommunity.com/market/listings/730/Antwerp%202022%20Challengers%20Autograph%20Capsule ~ 0
|
|
161
|
+
https://steamcommunity.com/market/listings/730/Antwerp%202022%20Legends%20Autograph%20Capsule ~ 0
|
|
162
|
+
https://steamcommunity.com/market/listings/730/Antwerp%202022%20Contenders%20Autograph%20Capsule ~ 0
|
|
156
163
|
|
|
157
164
|
[Rio 2022 Sticker Capsule]
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
+
https://steamcommunity.com/market/listings/730/Rio%202022%20Legends%20Sticker%20Capsule ~ 0
|
|
166
|
+
https://steamcommunity.com/market/listings/730/Rio%202022%20Challengers%20Sticker%20Capsule ~ 0
|
|
167
|
+
https://steamcommunity.com/market/listings/730/Rio%202022%20Contenders%20Sticker%20Capsule ~ 0
|
|
168
|
+
https://steamcommunity.com/market/listings/730/Rio%202022%20Champions%20Autograph%20Capsule ~ 0
|
|
169
|
+
https://steamcommunity.com/market/listings/730/Rio%202022%20Challengers%20Autograph%20Capsule ~ 0
|
|
170
|
+
https://steamcommunity.com/market/listings/730/Rio%202022%20Legends%20Autograph%20Capsule ~ 0
|
|
171
|
+
https://steamcommunity.com/market/listings/730/Rio%202022%20Contenders%20Autograph%20Capsule ~ 0
|
|
165
172
|
|
|
166
173
|
[Paris 2023 Sticker Capsule]
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
+
https://steamcommunity.com/market/listings/730/Paris%202023%20Legends%20Sticker%20Capsule ~ 0
|
|
175
|
+
https://steamcommunity.com/market/listings/730/Paris%202023%20Challengers%20Sticker%20Capsule ~ 0
|
|
176
|
+
https://steamcommunity.com/market/listings/730/Paris%202023%20Contenders%20Sticker%20Capsule ~ 0
|
|
177
|
+
https://steamcommunity.com/market/listings/730/Paris%202023%20Champions%20Autograph%20Capsule ~ 0
|
|
178
|
+
https://steamcommunity.com/market/listings/730/Paris%202023%20Challengers%20Autograph%20Capsule ~ 0
|
|
179
|
+
https://steamcommunity.com/market/listings/730/Paris%202023%20Legends%20Autograph%20Capsule ~ 0
|
|
180
|
+
https://steamcommunity.com/market/listings/730/Paris%202023%20Contenders%20Autograph%20Capsule ~ 0
|
|
174
181
|
|
|
175
182
|
[Copenhagen 2024 Sticker Capsule]
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
+
https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Legends%20Sticker%20Capsule ~ 0
|
|
184
|
+
https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Challengers%20Sticker%20Capsule ~ 0
|
|
185
|
+
https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Contenders%20Sticker%20Capsule ~ 0
|
|
186
|
+
https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Champions%20Autograph%20Capsule ~ 0
|
|
187
|
+
https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Challengers%20Autograph%20Capsule ~ 0
|
|
188
|
+
https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Legends%20Autograph%20Capsule ~ 0
|
|
189
|
+
https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Contenders%20Autograph%20Capsule ~ 0
|
|
183
190
|
|
|
184
191
|
[Shanghai 2024 Sticker Capsule]
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
+
https://steamcommunity.com/market/listings/730/Shanghai%202024%20Legends%20Sticker%20Capsule ~ 0
|
|
193
|
+
https://steamcommunity.com/market/listings/730/Shanghai%202024%20Challengers%20Sticker%20Capsule ~ 0
|
|
194
|
+
https://steamcommunity.com/market/listings/730/Shanghai%202024%20Contenders%20Sticker%20Capsule ~ 0
|
|
195
|
+
https://steamcommunity.com/market/listings/730/Shanghai%202024%20Champions%20Autograph%20Capsule ~ 0
|
|
196
|
+
https://steamcommunity.com/market/listings/730/Shanghai%202024%20Challengers%20Autograph%20Capsule ~ 0
|
|
197
|
+
https://steamcommunity.com/market/listings/730/Shanghai%202024%20Legends%20Autograph%20Capsule ~ 0
|
|
198
|
+
https://steamcommunity.com/market/listings/730/Shanghai%202024%20Contenders%20Autograph%20Capsule ~ 0
|
|
192
199
|
|
|
193
200
|
[Austin 2025 Sticker Capsule]
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
[App Settings]
|
|
203
|
-
use_proxy ~ False
|
|
204
|
-
discord_notifications ~ False
|
|
201
|
+
https://steamcommunity.com/market/listings/730/Austin%202025%20Legends%20Sticker%20Capsule ~ 0
|
|
202
|
+
https://steamcommunity.com/market/listings/730/Austin%202025%20Challengers%20Sticker%20Capsule ~ 0
|
|
203
|
+
https://steamcommunity.com/market/listings/730/Austin%202025%20Contenders%20Sticker%20Capsule ~ 0
|
|
204
|
+
https://steamcommunity.com/market/listings/730/Austin%202025%20Champions%20Autograph%20Capsule ~ 0
|
|
205
|
+
https://steamcommunity.com/market/listings/730/Austin%202025%20Challengers%20Autograph%20Capsule ~ 0
|
|
206
|
+
https://steamcommunity.com/market/listings/730/Austin%202025%20Legends%20Autograph%20Capsule ~ 0
|
|
207
|
+
https://steamcommunity.com/market/listings/730/Austin%202025%20Contenders%20Autograph%20Capsule ~ 0
|
|
@@ -18,6 +18,7 @@ class ItemNameConverter {
|
|
|
18
18
|
this.prefabs = {};
|
|
19
19
|
this.paintKits = {};
|
|
20
20
|
this.stickerKits = {};
|
|
21
|
+
this.musicKits = {};
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
async initialize() {
|
|
@@ -58,6 +59,7 @@ class ItemNameConverter {
|
|
|
58
59
|
this.prefabs = require(itemsCacheFile).prefabs;
|
|
59
60
|
this.paintKits = require(itemsCacheFile).paint_kits;
|
|
60
61
|
this.stickerKits = require(itemsCacheFile).sticker_kits;
|
|
62
|
+
this.musicKits = require(itemsCacheFile).music_definitions;
|
|
61
63
|
return;
|
|
62
64
|
}
|
|
63
65
|
|
|
@@ -67,6 +69,7 @@ class ItemNameConverter {
|
|
|
67
69
|
this.prefabs = parsed.prefabs;
|
|
68
70
|
this.paintKits = parsed.paint_kits;
|
|
69
71
|
this.stickerKits = parsed.sticker_kits;
|
|
72
|
+
this.musicKits = parsed.music_definitions;
|
|
70
73
|
|
|
71
74
|
fs.writeFileSync(itemsCacheFile, JSON.stringify(parsed, null, 2));
|
|
72
75
|
}
|
|
@@ -78,24 +81,34 @@ class ItemNameConverter {
|
|
|
78
81
|
|
|
79
82
|
getItemName(item) {
|
|
80
83
|
const def = this.items[item.def_index];
|
|
81
|
-
if (
|
|
84
|
+
if (def === undefined) return "";
|
|
82
85
|
|
|
83
86
|
let baseName = "";
|
|
84
|
-
if (def.item_name) {
|
|
87
|
+
if (def.item_name !== undefined) {
|
|
85
88
|
baseName = this.translate(def.item_name);
|
|
86
|
-
} else if (
|
|
89
|
+
} else if (
|
|
90
|
+
def.prefab !== undefined &&
|
|
91
|
+
this.prefabs[def.prefab] !== undefined
|
|
92
|
+
) {
|
|
87
93
|
baseName = this.translate(this.prefabs[def.prefab].item_name);
|
|
88
94
|
}
|
|
89
95
|
|
|
90
96
|
let stickerName = "";
|
|
91
|
-
if (
|
|
97
|
+
if (
|
|
98
|
+
baseName === "Sticker" &&
|
|
99
|
+
item.stickers !== undefined &&
|
|
100
|
+
item.stickers.length === 1
|
|
101
|
+
) {
|
|
92
102
|
stickerName = this.translate(
|
|
93
|
-
this.stickerKits[
|
|
103
|
+
this.stickerKits[item.stickers[0].sticker_id].item_name,
|
|
94
104
|
);
|
|
95
105
|
}
|
|
96
106
|
|
|
97
107
|
let skinName = "";
|
|
98
|
-
if (
|
|
108
|
+
if (
|
|
109
|
+
item.paint_index !== undefined &&
|
|
110
|
+
this.paintKits[item.paint_index] !== undefined
|
|
111
|
+
) {
|
|
99
112
|
skinName = this.translate(
|
|
100
113
|
this.paintKits[item.paint_index].description_tag,
|
|
101
114
|
);
|
|
@@ -106,13 +119,8 @@ class ItemNameConverter {
|
|
|
106
119
|
wear = this.getWearName(item.paint_wear);
|
|
107
120
|
}
|
|
108
121
|
|
|
109
|
-
//
|
|
110
|
-
if (item.
|
|
111
|
-
baseName = "★ " + baseName;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// It is a stattrak or souvenir item
|
|
115
|
-
if (item.attribute && item.attribute.length > 0) {
|
|
122
|
+
// Item is stattrak/souvenir/music kit
|
|
123
|
+
if (item.attribute !== undefined && item.attribute.length > 0) {
|
|
116
124
|
for (let [_attributeName, attributeValue] of Object.entries(
|
|
117
125
|
item.attribute,
|
|
118
126
|
)) {
|
|
@@ -127,14 +135,27 @@ class ItemNameConverter {
|
|
|
127
135
|
? baseName
|
|
128
136
|
: "Souvenir " + baseName;
|
|
129
137
|
break;
|
|
138
|
+
case 166:
|
|
139
|
+
if (baseName === "Music Kit") {
|
|
140
|
+
let music_index = attributeValue.value_bytes.readUInt32LE(0);
|
|
141
|
+
let musicKitName = this.translate(
|
|
142
|
+
this.musicKits[music_index].loc_name,
|
|
143
|
+
);
|
|
144
|
+
baseName = baseName + ` | ${musicKitName}`;
|
|
145
|
+
}
|
|
130
146
|
}
|
|
131
147
|
}
|
|
132
148
|
}
|
|
133
149
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
150
|
+
// Item is a knife / glove
|
|
151
|
+
if (item.quality === 3) {
|
|
152
|
+
baseName = "★ " + baseName;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (baseName && stickerName) {
|
|
137
156
|
return `${baseName} | ${stickerName}`;
|
|
157
|
+
} else if (baseName && skinName) {
|
|
158
|
+
return `${baseName} | ${skinName}${wear ? ` (${wear})` : ""}`;
|
|
138
159
|
}
|
|
139
160
|
|
|
140
161
|
return baseName;
|
|
@@ -153,21 +174,21 @@ class ItemNameConverter {
|
|
|
153
174
|
|
|
154
175
|
getItemType(item) {
|
|
155
176
|
const def = this.items[item.def_index];
|
|
156
|
-
if (
|
|
177
|
+
if (def === undefined) return "unknown";
|
|
157
178
|
|
|
158
|
-
if (def.item_name) {
|
|
179
|
+
if (def.item_name !== undefined) {
|
|
159
180
|
let translatedName =
|
|
160
181
|
def.item_name.replace("#", "").toLowerCase() || def.item_name;
|
|
161
182
|
if (
|
|
162
|
-
translatedName.
|
|
163
|
-
translatedName.
|
|
183
|
+
translatedName.startsWith("csgo_crate_sticker_pack") ||
|
|
184
|
+
translatedName.startsWith("csgo_crate_signature_pack")
|
|
164
185
|
) {
|
|
165
186
|
return "sticker capsule";
|
|
166
|
-
} else if (translatedName.
|
|
187
|
+
} else if (translatedName.startsWith("csgo_crate_community")) {
|
|
167
188
|
return "case";
|
|
168
|
-
} else if (translatedName.
|
|
189
|
+
} else if (translatedName.startsWith("csgo_tool_spray")) {
|
|
169
190
|
return "graffiti kit";
|
|
170
|
-
} else if (translatedName.
|
|
191
|
+
} else if (translatedName.startsWith("csgo_tool_sticker")) {
|
|
171
192
|
return "sticker";
|
|
172
193
|
}
|
|
173
194
|
}
|
|
@@ -175,12 +196,71 @@ class ItemNameConverter {
|
|
|
175
196
|
return "other";
|
|
176
197
|
}
|
|
177
198
|
|
|
199
|
+
getItemTradable(item) {
|
|
200
|
+
const def = this.items[item.def_index];
|
|
201
|
+
if (def === undefined) return false;
|
|
202
|
+
|
|
203
|
+
if (def.item_name !== undefined) {
|
|
204
|
+
let translatedName =
|
|
205
|
+
def.item_name.replace("#", "").toLowerCase() || def.item_name;
|
|
206
|
+
if (
|
|
207
|
+
translatedName.startsWith("csgo_collectible") ||
|
|
208
|
+
translatedName.startsWith("csgo_tournamentpass") ||
|
|
209
|
+
translatedName.startsWith("csgo_tournamentjournal") ||
|
|
210
|
+
translatedName.startsWith("csgo_ticket") ||
|
|
211
|
+
translatedName.startsWith("csgo_tool_casket_tag")
|
|
212
|
+
) {
|
|
213
|
+
return false;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (
|
|
218
|
+
def.prefab !== undefined &&
|
|
219
|
+
def.prefab.includes("collectible_untradable")
|
|
220
|
+
) {
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// Base weapons with stickers/name tags
|
|
225
|
+
if (
|
|
226
|
+
def.image_inventory !== undefined &&
|
|
227
|
+
def.image_inventory.startsWith("econ/weapons/base_weapons")
|
|
228
|
+
) {
|
|
229
|
+
return false;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// Base weapons with stickers/name tags
|
|
233
|
+
if (
|
|
234
|
+
item.paint_index === undefined &&
|
|
235
|
+
def.image_inventory === undefined &&
|
|
236
|
+
def.prefab !== undefined
|
|
237
|
+
) {
|
|
238
|
+
let prefab = this.prefabs[def.prefab];
|
|
239
|
+
if (
|
|
240
|
+
prefab !== undefined &&
|
|
241
|
+
prefab.image_inventory !== undefined &&
|
|
242
|
+
prefab.image_inventory.startsWith("econ/weapons/base_weapons")
|
|
243
|
+
) {
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return true;
|
|
249
|
+
}
|
|
250
|
+
|
|
178
251
|
convertInventory(inventoryList) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
252
|
+
// Some untradable items were too difficult to filter out via their properties,
|
|
253
|
+
// so we filter them out by their item name here.
|
|
254
|
+
let excludeItems = ["P250 | X-Ray", "Music Kit | Valve, CS:GO"];
|
|
255
|
+
|
|
256
|
+
return inventoryList
|
|
257
|
+
.map((item) => ({
|
|
258
|
+
...item,
|
|
259
|
+
item_name: this.getItemName(item),
|
|
260
|
+
item_type: this.getItemType(item),
|
|
261
|
+
item_tradable: this.getItemTradable(item),
|
|
262
|
+
}))
|
|
263
|
+
.filter((item) => !excludeItems.includes(item.item_name));
|
|
184
264
|
}
|
|
185
265
|
}
|
|
186
266
|
|