cs2tracker 2.1.13__py3-none-any.whl → 2.1.14__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/constants.py CHANGED
@@ -3,6 +3,9 @@ import os
3
3
  import sys
4
4
  from datetime import datetime
5
5
  from shutil import copy
6
+ from subprocess import DEVNULL
7
+
8
+ from nodejs import npm
6
9
 
7
10
  try:
8
11
  from cs2tracker._version import version # pylint: disable=E0611
@@ -27,19 +30,20 @@ if RUNNING_IN_EXE:
27
30
  MEIPASS_DIR = sys._MEIPASS # type: ignore pylint: disable=protected-access
28
31
  MODULE_DIR = MEIPASS_DIR
29
32
  PROJECT_DIR = MEIPASS_DIR
30
- ICON_FILE = os.path.join(PROJECT_DIR, "assets", "icon.png")
31
- CONFIG_FILE_SOURCE = os.path.join(MODULE_DIR, "data", "config.ini")
32
- OUTPUT_FILE_SOURCE = os.path.join(MODULE_DIR, "data", "output.csv")
33
-
34
33
  APP_DATA_DIR = os.path.join(os.path.expanduser("~"), "AppData", "Local")
35
34
  DATA_DIR = os.path.join(APP_DATA_DIR, "cs2tracker", "data")
36
35
  os.makedirs(DATA_DIR, exist_ok=True)
37
36
 
37
+ CONFIG_FILE_SOURCE = os.path.join(MODULE_DIR, "data", "config.ini")
38
+ OUTPUT_FILE_SOURCE = os.path.join(MODULE_DIR, "data", "output.csv")
39
+ IVENTORY_CONVERT_SCRIPT_SOURCE = os.path.join(MODULE_DIR, "data", "convert_inventory.js")
40
+ INVENTORY_IMPORT_SCRIPT_SOURCE = os.path.join(MODULE_DIR, "data", "get_inventory.js")
41
+
38
42
  CONFIG_FILE = os.path.join(DATA_DIR, "config.ini")
39
43
  CONFIG_FILE_BACKUP = os.path.join(DATA_DIR, "config.ini.bak")
40
44
  OUTPUT_FILE = os.path.join(DATA_DIR, "output.csv")
41
- BATCH_FILE = os.path.join(DATA_DIR, "cs2tracker_scraper.bat")
42
- INVENTORY_IMPORT_FILE = os.path.join(DATA_DIR, "inventory.json")
45
+ IVENTORY_CONVERT_SCRIPT = os.path.join(DATA_DIR, "convert_inventory.js")
46
+ INVENTORY_IMPORT_SCRIPT = os.path.join(DATA_DIR, "get_inventory.js")
43
47
 
44
48
  # Always copy the source config into the user data directory as a backup
45
49
  # and overwrite the existing backup if it exists
@@ -50,22 +54,29 @@ if RUNNING_IN_EXE:
50
54
  copy(OUTPUT_FILE_SOURCE, OUTPUT_FILE)
51
55
  if not os.path.exists(CONFIG_FILE):
52
56
  copy(CONFIG_FILE_SOURCE, CONFIG_FILE)
57
+ if not os.path.exists(IVENTORY_CONVERT_SCRIPT):
58
+ copy(IVENTORY_CONVERT_SCRIPT_SOURCE, IVENTORY_CONVERT_SCRIPT)
59
+ if not os.path.exists(INVENTORY_IMPORT_SCRIPT):
60
+ copy(INVENTORY_IMPORT_SCRIPT_SOURCE, INVENTORY_IMPORT_SCRIPT)
53
61
 
54
62
  else:
55
63
  MODULE_DIR = os.path.dirname(os.path.abspath(__file__))
56
64
  PROJECT_DIR = os.path.dirname(MODULE_DIR)
57
- ICON_FILE = os.path.join(PROJECT_DIR, "assets", "icon.png")
58
- CONFIG_FILE = os.path.join(MODULE_DIR, "data", "config.ini")
59
- CONFIG_FILE_BACKUP = os.path.join(MODULE_DIR, "data", "config.ini.bak")
60
- OUTPUT_FILE = os.path.join(MODULE_DIR, "data", "output.csv")
61
- BATCH_FILE = os.path.join(MODULE_DIR, "data", "cs2tracker_scraper.bat")
62
- INVENTORY_IMPORT_FILE = os.path.join(MODULE_DIR, "data", "inventory.json")
65
+ DATA_DIR = os.path.join(MODULE_DIR, "data")
66
+
67
+ CONFIG_FILE = os.path.join(DATA_DIR, "config.ini")
68
+ CONFIG_FILE_BACKUP = os.path.join(DATA_DIR, "config.ini.bak")
69
+ OUTPUT_FILE = os.path.join(DATA_DIR, "output.csv")
70
+ INVENTORY_CONVERT_SCRIPT = os.path.join(DATA_DIR, "convert_inventory.js")
71
+ INVENTORY_IMPORT_SCRIPT = os.path.join(DATA_DIR, "get_inventory.js")
63
72
 
64
73
  if not os.path.exists(CONFIG_FILE_BACKUP):
65
74
  copy(CONFIG_FILE, CONFIG_FILE_BACKUP)
66
75
 
67
76
 
68
- INVENTORY_IMPORT_SCRIPT = os.path.join(MODULE_DIR, "data", "get_inventory.js")
77
+ ICON_FILE = os.path.join(PROJECT_DIR, "assets", "icon.png")
78
+ BATCH_FILE = os.path.join(DATA_DIR, "cs2tracker_scraper.bat")
79
+ INVENTORY_IMPORT_FILE = os.path.join(DATA_DIR, "inventory.json")
69
80
  INVENTORY_IMPORT_SCRIPT_DEPENDENCIES = [
70
81
  "steam-user",
71
82
  "globaloffensive",
@@ -73,6 +84,17 @@ INVENTORY_IMPORT_SCRIPT_DEPENDENCIES = [
73
84
  "axios",
74
85
  ]
75
86
 
87
+ # Ensures that the necessary node modules are installed if a user wants
88
+ # to import their steam inventory via the cs2tracker/data/get_inventory.js Node.js script.
89
+ if not os.path.exists(os.path.join(DATA_DIR, "node_modules")):
90
+ npm.Popen(
91
+ ["install", "-g", "--prefix", DATA_DIR] + INVENTORY_IMPORT_SCRIPT_DEPENDENCIES,
92
+ stdout=DEVNULL,
93
+ stderr=DEVNULL,
94
+ shell=True,
95
+ cwd=DATA_DIR,
96
+ )
97
+
76
98
 
77
99
  BANNER = """
78
100
  __ _____ _____ ______ ____ ____ __ __ _ ___ ____
@@ -88,312 +110,27 @@ AUTHOR_STRING = (
88
110
  f"Version: {VERSION} - {datetime.today().strftime('%Y/%m/%d')} - Jannik Novak @ashiven\n"
89
111
  )
90
112
 
91
- CASE_HREFS = [
92
- "https://steamcommunity.com/market/listings/730/Revolution%20Case",
93
- "https://steamcommunity.com/market/listings/730/Recoil%20Case",
94
- "https://steamcommunity.com/market/listings/730/Dreams%20%26%20Nightmares%20Case",
95
- "https://steamcommunity.com/market/listings/730/Operation%20Riptide%20Case",
96
- "https://steamcommunity.com/market/listings/730/Snakebite%20Case",
97
- "https://steamcommunity.com/market/listings/730/Operation%20Broken%20Fang%20Case",
98
- "https://steamcommunity.com/market/listings/730/Fracture%20Case",
99
- "https://steamcommunity.com/market/listings/730/Chroma%20Case",
100
- "https://steamcommunity.com/market/listings/730/Chroma%202%20Case",
101
- "https://steamcommunity.com/market/listings/730/Chroma%203%20Case",
102
- "https://steamcommunity.com/market/listings/730/Clutch%20Case",
103
- "https://steamcommunity.com/market/listings/730/CS%3AGO%20Weapon%20Case",
104
- "https://steamcommunity.com/market/listings/730/CS%3AGO%20Weapon%20Case%202",
105
- "https://steamcommunity.com/market/listings/730/CS%3AGO%20Weapon%20Case%203",
106
- "https://steamcommunity.com/market/listings/730/CS20%20Case",
107
- "https://steamcommunity.com/market/listings/730/Danger%20Zone%20Case",
108
- "https://steamcommunity.com/market/listings/730/eSports%202013%20Case",
109
- "https://steamcommunity.com/market/listings/730/eSports%202013%20Winter%20Case",
110
- "https://steamcommunity.com/market/listings/730/eSports%202014%20Summer%20Case",
111
- "https://steamcommunity.com/market/listings/730/Falchion%20Case",
112
- "https://steamcommunity.com/market/listings/730/Gamma%20Case",
113
- "https://steamcommunity.com/market/listings/730/Gamma%202%20Case",
114
- "https://steamcommunity.com/market/listings/730/Glove%20Case",
115
- "https://steamcommunity.com/market/listings/730/Horizon%20Case",
116
- "https://steamcommunity.com/market/listings/730/Huntsman%20Weapon%20Case",
117
- "https://steamcommunity.com/market/listings/730/Operation%20Bravo%20Case",
118
- "https://steamcommunity.com/market/listings/730/Operation%20Breakout%20Weapon%20Case",
119
- "https://steamcommunity.com/market/listings/730/Operation%20Hydra%20Case",
120
- "https://steamcommunity.com/market/listings/730/Operation%20Phoenix%20Weapon%20Case",
121
- "https://steamcommunity.com/market/listings/730/Operation%20Vanguard%20Weapon%20Case",
122
- "https://steamcommunity.com/market/listings/730/Operation%20Wildfire%20Case",
123
- "https://steamcommunity.com/market/listings/730/Prisma%20Case",
124
- "https://steamcommunity.com/market/listings/730/Prisma%202%20Case",
125
- "https://steamcommunity.com/market/listings/730/Revolver%20Case",
126
- "https://steamcommunity.com/market/listings/730/Shadow%20Case",
127
- "https://steamcommunity.com/market/listings/730/Shattered%20Web%20Case",
128
- "https://steamcommunity.com/market/listings/730/Spectrum%20Case",
129
- "https://steamcommunity.com/market/listings/730/Spectrum%202%20Case",
130
- "https://steamcommunity.com/market/listings/730/Winter%20Offensive%20Weapon%20Case",
131
- "https://steamcommunity.com/market/listings/730/Kilowatt%20Case",
132
- "https://steamcommunity.com/market/listings/730/Gallery%20Case",
133
- "https://steamcommunity.com/market/listings/730/Fever%20Case",
134
- ]
135
-
136
-
137
- KATOWICE_2014_CAPSULES = {
138
- "page": "https://steamcommunity.com/market/search?q=katowice+2014+legends+challengers",
139
- "items": [
140
- "https://steamcommunity.com/market/listings/730/EMS%20Katowice%202014%20Legends",
141
- "https://steamcommunity.com/market/listings/730/EMS%20Katowice%202014%20Challengers",
142
- ],
143
- }
144
-
145
- COLOGNE_2014_CAPSULES = {
146
- "page": "https://steamcommunity.com/market/search?q=cologne+2014+legends+challengers",
147
- "items": [
148
- "https://steamcommunity.com/market/listings/730/ESL%20One%20Cologne%202014%20Legends",
149
- "https://steamcommunity.com/market/listings/730/ESL%20One%20Cologne%202014%20Challengers",
150
- ],
151
- }
152
-
153
- DREAMHACK_2014_CAPSULES = {
154
- "page": "https://steamcommunity.com/market/search?q=dreamhack+2014+legends",
155
- "items": [
156
- "https://steamcommunity.com/market/listings/730/DreamHack%202014%20Legends%20%28Holo-Foil%29"
157
- ],
158
- }
159
-
160
- KATOWICE_2015_CAPSULES = {
161
- "page": "https://steamcommunity.com/market/search?q=katowice+2015+legends+challengers",
162
- "items": [
163
- "https://steamcommunity.com/market/listings/730/ESL%20One%20Katowice%202015%20Legends%20%28Holo-Foil%29",
164
- "https://steamcommunity.com/market/listings/730/ESL%20One%20Katowice%202015%20Challengers%20%28Holo-Foil%29",
165
- ],
166
- }
167
-
168
- COLOGNE_2015_CAPSULES = {
169
- "page": "https://steamcommunity.com/market/search?q=cologne+2015+legends+challengers",
170
- "items": [
171
- "https://steamcommunity.com/market/listings/730/ESL%20One%20Cologne%202015%20Legends%20%28Foil%29",
172
- "https://steamcommunity.com/market/listings/730/ESL%20One%20Cologne%202015%20Challengers%20%28Foil%29",
173
- ],
174
- }
175
-
176
- CLUJ_NAPOCA_2015_CAPSULES = {
177
- "page": "https://steamcommunity.com/market/search?q=cluj+napoca+2015+legends+challengers",
178
- "items": [
179
- "https://steamcommunity.com/market/listings/730/DreamHack%20Cluj-Napoca%202015%20Legends%20%28Foil%29",
180
- "https://steamcommunity.com/market/listings/730/DreamHack%20Cluj-Napoca%202015%20Challengers%20%28Foil%29",
181
- "https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Legends%20%28Foil%29%20%7C%20Cluj-Napoca%202015",
182
- "https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Challengers%20%28Foil%29%20%7C%20Cluj-Napoca%202015",
183
- ],
184
- }
185
-
186
- COLUMBUS_2016_CAPSULES = {
187
- "page": "https://steamcommunity.com/market/search?q=columbus+2016+legends+challengers",
188
- "items": [
189
- "https://steamcommunity.com/market/listings/730/MLG%20Columbus%202016%20Legends%20%28Holo-Foil%29",
190
- "https://steamcommunity.com/market/listings/730/MLG%20Columbus%202016%20Challengers%20%28Holo-Foil%29",
191
- "https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Legends%20%28Foil%29%20%7C%20MLG%20Columbus%202016",
192
- "https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Challengers%20%28Foil%29%20%7C%20MLG%20Columbus%202016",
193
- ],
194
- }
195
-
196
- COLOGNE_2016_CAPSULES = {
197
- "page": "https://steamcommunity.com/market/search?q=cologne+2016+legends+challengers",
198
- "items": [
199
- "https://steamcommunity.com/market/listings/730/Cologne%202016%20Legends%20%28Holo-Foil%29",
200
- "https://steamcommunity.com/market/listings/730/Cologne%202016%20Challengers%20%28Holo-Foil%29",
201
- "https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Legends%20%28Foil%29%20%7C%20Cologne%202016",
202
- "https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Challengers%20%28Foil%29%20%7C%20Cologne%202016",
203
- ],
204
- }
205
-
206
- ATLANTA_2017_CAPSULES = {
207
- "page": "https://steamcommunity.com/market/search?q=atlanta+2017+legends+challengers",
208
- "items": [
209
- "https://steamcommunity.com/market/listings/730/Atlanta%202017%20Legends%20%28Holo-Foil%29",
210
- "https://steamcommunity.com/market/listings/730/Atlanta%202017%20Challengers%20%28Holo-Foil%29",
211
- "https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Legends%20%28Foil%29%20%7C%20Atlanta%202017",
212
- "https://steamcommunity.com/market/listings/730/Autograph%20Capsule%20%7C%20Challengers%20%28Foil%29%20%7C%20Atlanta%202017",
213
- ],
214
- }
215
-
216
- KRAKOW_2017_CAPSULES = {
217
- "page": "https://steamcommunity.com/market/search?q=krakow+2017+legends+challengers",
218
- "items": [
219
- "https://steamcommunity.com/market/listings/730/Krakow%202017%20Legends%20%28Holo-Foil%29",
220
- "https://steamcommunity.com/market/listings/730/Krakow%202017%20Challengers%20%28Holo-Foil%29",
221
- "https://steamcommunity.com/market/listings/730/Krakow%202017%20Legends%20Autograph%20Capsule",
222
- "https://steamcommunity.com/market/listings/730/Krakow%202017%20Challengers%20Autograph%20Capsule",
223
- ],
224
- }
225
-
226
- BOSTON_2018_CAPSULES = {
227
- "page": "https://steamcommunity.com/market/search?q=boston+2018+legends+challengers",
228
- "items": [
229
- "https://steamcommunity.com/market/listings/730/Boston%202018%20Legends%20%28Holo-Foil%29",
230
- "https://steamcommunity.com/market/listings/730/Boston%202018%20Minor%20Challengers%20%28Holo-Foil%29",
231
- "https://steamcommunity.com/market/listings/730/Boston%202018%20Returning%20Challengers%20%28Holo-Foil%29",
232
- "https://steamcommunity.com/market/listings/730/Boston%202018%20Attending%20Legends%20%28Holo-Foil%29",
233
- "https://steamcommunity.com/market/listings/730/Boston%202018%20Minor%20Challengers%20with%20Flash%20Gaming%20%28Holo-Foil%29",
234
- "https://steamcommunity.com/market/listings/730/Boston%202018%20Legends%20Autograph%20Capsule",
235
- "https://steamcommunity.com/market/listings/730/Boston%202018%20Minor%20Challengers%20Autograph%20Capsule",
236
- "https://steamcommunity.com/market/listings/730/Boston%202018%20Returning%20Challengers%20Autograph%20Capsule",
237
- "https://steamcommunity.com/market/listings/730/Boston%202018%20Attending%20Legends%20Autograph%20Capsule",
238
- "https://steamcommunity.com/market/listings/730/Boston%202018%20Minor%20Challengers%20with%20Flash%20Gaming%20Autograph%20Capsule",
239
- ],
240
- }
241
-
242
- LONDON_2018_CAPSULES = {
243
- "page": "https://steamcommunity.com/market/search?q=london+2018+legends+challengers",
244
- "items": [
245
- "https://steamcommunity.com/market/listings/730/London%202018%20Legends%20%28Holo-Foil%29",
246
- "https://steamcommunity.com/market/listings/730/London%202018%20Minor%20Challengers%20%28Holo-Foil%29",
247
- "https://steamcommunity.com/market/listings/730/London%202018%20Returning%20Challengers%20%28Holo-Foil%29",
248
- "https://steamcommunity.com/market/listings/730/London%202018%20Legends%20Autograph%20Capsule",
249
- "https://steamcommunity.com/market/listings/730/London%202018%20Minor%20Challengers%20Autograph%20Capsule",
250
- "https://steamcommunity.com/market/listings/730/London%202018%20Returning%20Challengers%20Autograph%20Capsule",
251
- ],
252
- }
253
-
254
- KATOWICE_2019_CAPSULES = {
255
- "page": "https://steamcommunity.com/market/search?q=katowice+2019+legends+challengers",
256
- "items": [
257
- "https://steamcommunity.com/market/listings/730/Katowice%202019%20Legends%20%28Holo-Foil%29",
258
- "https://steamcommunity.com/market/listings/730/Katowice%202019%20Minor%20Challengers%20%28Holo-Foil%29",
259
- "https://steamcommunity.com/market/listings/730/Katowice%202019%20Returning%20Challengers%20%28Holo-Foil%29",
260
- "https://steamcommunity.com/market/listings/730/Katowice%202019%20Legends%20Autograph%20Capsule",
261
- "https://steamcommunity.com/market/listings/730/Katowice%202019%20Minor%20Challengers%20Autograph%20Capsule",
262
- "https://steamcommunity.com/market/listings/730/Katowice%202019%20Returning%20Challengers%20Autograph%20Capsule",
263
- ],
264
- }
265
-
266
- BERLIN_2019_CAPSULES = {
267
- "page": "https://steamcommunity.com/market/search?q=berlin+2019+legends+challengers",
268
- "items": [
269
- "https://steamcommunity.com/market/listings/730/Berlin%202019%20Legends%20%28Holo-Foil%29",
270
- "https://steamcommunity.com/market/listings/730/Berlin%202019%20Minor%20Challengers%20%28Holo-Foil%29",
271
- "https://steamcommunity.com/market/listings/730/Berlin%202019%20Returning%20Challengers%20%28Holo-Foil%29",
272
- "https://steamcommunity.com/market/listings/730/Berlin%202019%20Legends%20Autograph%20Capsule",
273
- "https://steamcommunity.com/market/listings/730/Berlin%202019%20Minor%20Challengers%20Autograph%20Capsule",
274
- "https://steamcommunity.com/market/listings/730/Berlin%202019%20Returning%20Challengers%20Autograph%20Capsule",
275
- ],
276
- }
277
-
278
- RMR_2020_CAPSULES = {
279
- "page": "https://steamcommunity.com/market/search?q=2020+rmr",
280
- "items": [
281
- "https://steamcommunity.com/market/listings/730/2020%20RMR%20Legends",
282
- "https://steamcommunity.com/market/listings/730/2020%20RMR%20Challengers",
283
- "https://steamcommunity.com/market/listings/730/2020%20RMR%20Contenders",
284
- ],
285
- }
286
-
287
- STOCKHOLM_2021_CAPSULES = {
288
- "page": "https://steamcommunity.com/market/search?q=stockholm+capsule",
289
- "items": [
290
- "https://steamcommunity.com/market/listings/730/Stockholm%202021%20Legends%20Sticker%20Capsule",
291
- "https://steamcommunity.com/market/listings/730/Stockholm%202021%20Challengers%20Sticker%20Capsule",
292
- "https://steamcommunity.com/market/listings/730/Stockholm%202021%20Contenders%20Sticker%20Capsule",
293
- "https://steamcommunity.com/market/listings/730/Stockholm%202021%20Champions%20Autograph%20Capsule",
294
- "https://steamcommunity.com/market/listings/730/Stockholm%202021%20Finalists%20Autograph%20Capsule",
295
- ],
296
- }
297
-
298
- ANTWERP_2022_CAPSULES = {
299
- "page": "https://steamcommunity.com/market/search?q=antwerp+capsule",
300
- "items": [
301
- "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Legends%20Sticker%20Capsule",
302
- "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Challengers%20Sticker%20Capsule",
303
- "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Contenders%20Sticker%20Capsule",
304
- "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Champions%20Autograph%20Capsule",
305
- "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Challengers%20Autograph%20Capsule",
306
- "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Legends%20Autograph%20Capsule",
307
- "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Contenders%20Autograph%20Capsule",
308
- ],
309
- }
310
-
311
- RIO_2022_CAPSULES = {
312
- "page": "https://steamcommunity.com/market/search?q=rio+capsule",
313
- "items": [
314
- "https://steamcommunity.com/market/listings/730/Rio%202022%20Legends%20Sticker%20Capsule",
315
- "https://steamcommunity.com/market/listings/730/Rio%202022%20Challengers%20Sticker%20Capsule",
316
- "https://steamcommunity.com/market/listings/730/Rio%202022%20Contenders%20Sticker%20Capsule",
317
- "https://steamcommunity.com/market/listings/730/Rio%202022%20Champions%20Autograph%20Capsule",
318
- "https://steamcommunity.com/market/listings/730/Rio%202022%20Challengers%20Autograph%20Capsule",
319
- "https://steamcommunity.com/market/listings/730/Rio%202022%20Legends%20Autograph%20Capsule",
320
- "https://steamcommunity.com/market/listings/730/Rio%202022%20Contenders%20Autograph%20Capsule",
321
- ],
322
- }
323
-
324
- PARIS_2023_CAPSULES = {
325
- "page": "https://steamcommunity.com/market/search?q=paris+capsule",
326
- "items": [
327
- "https://steamcommunity.com/market/listings/730/Paris%202023%20Legends%20Sticker%20Capsule",
328
- "https://steamcommunity.com/market/listings/730/Paris%202023%20Challengers%20Sticker%20Capsule",
329
- "https://steamcommunity.com/market/listings/730/Paris%202023%20Contenders%20Sticker%20Capsule",
330
- "https://steamcommunity.com/market/listings/730/Paris%202023%20Champions%20Autograph%20Capsule",
331
- "https://steamcommunity.com/market/listings/730/Paris%202023%20Challengers%20Autograph%20Capsule",
332
- "https://steamcommunity.com/market/listings/730/Paris%202023%20Legends%20Autograph%20Capsule",
333
- "https://steamcommunity.com/market/listings/730/Paris%202023%20Contenders%20Autograph%20Capsule",
334
- ],
335
- }
336
-
337
- COPENHAGEN_2024_CAPSULES = {
338
- "page": "https://steamcommunity.com/market/search?q=copenhagen+capsule",
339
- "items": [
340
- "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Legends%20Sticker%20Capsule",
341
- "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Challengers%20Sticker%20Capsule",
342
- "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Contenders%20Sticker%20Capsule",
343
- "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Champions%20Autograph%20Capsule",
344
- "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Challengers%20Autograph%20Capsule",
345
- "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Legends%20Autograph%20Capsule",
346
- "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Contenders%20Autograph%20Capsule",
347
- ],
348
- }
349
-
350
- SHANGHAI_2024_CAPSULES = {
351
- "page": "https://steamcommunity.com/market/search?q=shanghai+capsule",
352
- "items": [
353
- "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Legends%20Sticker%20Capsule",
354
- "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Challengers%20Sticker%20Capsule",
355
- "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Contenders%20Sticker%20Capsule",
356
- "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Champions%20Autograph%20Capsule",
357
- "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Challengers%20Autograph%20Capsule",
358
- "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Legends%20Autograph%20Capsule",
359
- "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Contenders%20Autograph%20Capsule",
360
- ],
361
- }
362
-
363
- AUSTIN_2025_CAPSULES = {
364
- "page": "https://steamcommunity.com/market/search?q=austin+capsule",
365
- "items": [
366
- "https://steamcommunity.com/market/listings/730/Austin%202025%20Legends%20Sticker%20Capsule",
367
- "https://steamcommunity.com/market/listings/730/Austin%202025%20Challengers%20Sticker%20Capsule",
368
- "https://steamcommunity.com/market/listings/730/Austin%202025%20Contenders%20Sticker%20Capsule",
369
- "https://steamcommunity.com/market/listings/730/Austin%202025%20Champions%20Autograph%20Capsule",
370
- "https://steamcommunity.com/market/listings/730/Austin%202025%20Challengers%20Autograph%20Capsule",
371
- "https://steamcommunity.com/market/listings/730/Austin%202025%20Legends%20Autograph%20Capsule",
372
- "https://steamcommunity.com/market/listings/730/Austin%202025%20Contenders%20Autograph%20Capsule",
373
- ],
374
- }
375
-
376
- CAPSULE_INFO = {
377
- "Katowice 2014 Sticker Capsule": KATOWICE_2014_CAPSULES,
378
- "Cologne 2014 Sticker Capsule": COLOGNE_2014_CAPSULES,
379
- "DreamHack 2014 Sticker Capsule": DREAMHACK_2014_CAPSULES,
380
- "Katowice 2015 Sticker Capsule": KATOWICE_2015_CAPSULES,
381
- "Cologne 2015 Sticker Capsule": COLOGNE_2015_CAPSULES,
382
- "Cluj-Napoca 2015 Sticker Capsule": CLUJ_NAPOCA_2015_CAPSULES,
383
- "Columbus 2016 Sticker Capsule": COLUMBUS_2016_CAPSULES,
384
- "Cologne 2016 Sticker Capsule": COLOGNE_2016_CAPSULES,
385
- "Atlanta 2017 Sticker Capsule": ATLANTA_2017_CAPSULES,
386
- "Krakow 2017 Sticker Capsule": KRAKOW_2017_CAPSULES,
387
- "Boston 2018 Sticker Capsule": BOSTON_2018_CAPSULES,
388
- "London 2018 Sticker Capsule": LONDON_2018_CAPSULES,
389
- "Katowice 2019 Sticker Capsule": KATOWICE_2019_CAPSULES,
390
- "Berlin 2019 Sticker Capsule": BERLIN_2019_CAPSULES,
391
- "2020 RMR Sticker Capsule": RMR_2020_CAPSULES,
392
- "Stockholm 2021 Sticker Capsule": STOCKHOLM_2021_CAPSULES,
393
- "Antwerp 2022 Sticker Capsule": ANTWERP_2022_CAPSULES,
394
- "Rio 2022 Sticker Capsule": RIO_2022_CAPSULES,
395
- "Paris 2023 Sticker Capsule": PARIS_2023_CAPSULES,
396
- "Copenhagen 2024 Sticker Capsule": COPENHAGEN_2024_CAPSULES,
397
- "Shanghai 2024 Sticker Capsule": SHANGHAI_2024_CAPSULES,
398
- "Austin 2025 Sticker Capsule": AUSTIN_2025_CAPSULES,
113
+ CAPSULE_PAGES = {
114
+ "Katowice 2014 Sticker Capsule": "https://steamcommunity.com/market/search?q=katowice+2014+legends+challengers",
115
+ "Cologne 2014 Sticker Capsule": "https://steamcommunity.com/market/search?q=cologne+2014+legends+challengers",
116
+ "DreamHack 2014 Sticker Capsule": "https://steamcommunity.com/market/search?q=dreamhack+2014+legends",
117
+ "Katowice 2015 Sticker Capsule": "https://steamcommunity.com/market/search?q=katowice+2015+legends+challengers",
118
+ "Cologne 2015 Sticker Capsule": "https://steamcommunity.com/market/search?q=cologne+2015+legends+challengers",
119
+ "Cluj-Napoca 2015 Sticker Capsule": "https://steamcommunity.com/market/search?q=cluj+napoca+2015+legends+challengers",
120
+ "Columbus 2016 Sticker Capsule": "https://steamcommunity.com/market/search?q=columbus+2016+legends+challengers",
121
+ "Cologne 2016 Sticker Capsule": "https://steamcommunity.com/market/search?q=cologne+2016+legends+challengers",
122
+ "Atlanta 2017 Sticker Capsule": "https://steamcommunity.com/market/search?q=atlanta+2017+legends+challengers",
123
+ "Krakow 2017 Sticker Capsule": "https://steamcommunity.com/market/search?q=krakow+2017+legends+challengers",
124
+ "Boston 2018 Sticker Capsule": "https://steamcommunity.com/market/search?q=boston+2018+legends+challengers",
125
+ "London 2018 Sticker Capsule": "https://steamcommunity.com/market/search?q=london+2018+legends+challengers",
126
+ "Katowice 2019 Sticker Capsule": "https://steamcommunity.com/market/search?q=katowice+2019+legends+challengers",
127
+ "Berlin 2019 Sticker Capsule": "https://steamcommunity.com/market/search?q=berlin+2019+legends+challengers",
128
+ "2020 RMR Sticker Capsule": "https://steamcommunity.com/market/search?q=2020+rmr",
129
+ "Stockholm 2021 Sticker Capsule": "https://steamcommunity.com/market/search?q=stockholm+capsule",
130
+ "Antwerp 2022 Sticker Capsule": "https://steamcommunity.com/market/search?q=antwerp+capsule",
131
+ "Rio 2022 Sticker Capsule": "https://steamcommunity.com/market/search?q=rio+capsule",
132
+ "Paris 2023 Sticker Capsule": "https://steamcommunity.com/market/search?q=paris+capsule",
133
+ "Copenhagen 2024 Sticker Capsule": "https://steamcommunity.com/market/search?q=copenhagen+capsule",
134
+ "Shanghai 2024 Sticker Capsule": "https://steamcommunity.com/market/search?q=shanghai+capsule",
135
+ "Austin 2025 Sticker Capsule": "https://steamcommunity.com/market/search?q=austin+capsule",
399
136
  }