cs2tracker 2.1.1__tar.gz → 2.1.2__tar.gz

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.

Files changed (30) hide show
  1. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/.flake8 +1 -1
  2. cs2tracker-2.1.2/.gitignore +9 -0
  3. cs2tracker-2.1.2/.pylintrc +13 -0
  4. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/PKG-INFO +10 -4
  5. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/README.md +8 -3
  6. cs2tracker-2.1.2/cs2tracker/__main__.py +14 -0
  7. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/cs2tracker/_version.py +2 -2
  8. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/cs2tracker/application.py +31 -52
  9. cs2tracker-2.1.2/cs2tracker/constants.py +271 -0
  10. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/cs2tracker/data/config.ini +9 -9
  11. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/cs2tracker/main.py +10 -3
  12. cs2tracker-2.1.2/cs2tracker/scraper.py +305 -0
  13. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/cs2tracker.egg-info/PKG-INFO +10 -4
  14. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/cs2tracker.egg-info/SOURCES.txt +1 -0
  15. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/cs2tracker.egg-info/requires.txt +1 -0
  16. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/pyproject.toml +2 -2
  17. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/requirements.txt +1 -0
  18. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/setup.cfg +2 -1
  19. cs2tracker-2.1.1/.gitignore +0 -3
  20. cs2tracker-2.1.1/cs2tracker/__main__.py +0 -9
  21. cs2tracker-2.1.1/cs2tracker/constants.py +0 -272
  22. cs2tracker-2.1.1/cs2tracker/scraper.py +0 -338
  23. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/.isort.cfg +0 -0
  24. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/.pre-commit-config.yaml +0 -0
  25. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/LICENSE.md +0 -0
  26. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/MANIFEST.in +0 -0
  27. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/cs2tracker/__init__.py +0 -0
  28. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/cs2tracker.egg-info/dependency_links.txt +0 -0
  29. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/cs2tracker.egg-info/entry_points.txt +0 -0
  30. {cs2tracker-2.1.1 → cs2tracker-2.1.2}/cs2tracker.egg-info/top_level.txt +0 -0
@@ -1,5 +1,5 @@
1
1
  [flake8]
2
2
  ignore = E203, E266, E501, W503, F403, F401, F541, W605
3
- max-line-length = 88
3
+ max-line-length = 100
4
4
  max-complexity = 18
5
5
  select = B,C,E,F,W,T4,B9
@@ -0,0 +1,9 @@
1
+ output.csv
2
+ .vscode
3
+ __pycache__
4
+ venv
5
+ build
6
+ dist
7
+ venv-test
8
+ cs2tracker.egg-info
9
+ _version.py
@@ -0,0 +1,13 @@
1
+ [MESSAGES CONTROL]
2
+ disable=
3
+ too-many-instance-attributes,
4
+ too-many-arguments,
5
+ too-many-positional-arguments,
6
+ too-many-locals,
7
+ line-too-long,
8
+ missing-module-docstring,
9
+ missing-class-docstring,
10
+ too-few-public-methods,
11
+ import-error,
12
+ simplifiable-if-expression,
13
+ consider-using-with
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cs2tracker
3
- Version: 2.1.1
3
+ Version: 2.1.2
4
4
  Summary: Tracking the steam market prices of CS2 items
5
5
  Home-page: https://github.com/ashiven/cs2tracker
6
6
  Author: Jannik Novak
@@ -11,6 +11,7 @@ Classifier: Programming Language :: Python :: 3.11
11
11
  Requires-Python: >=3.11
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE.md
14
+ Requires-Dist: numpy==1.26.4
14
15
  Requires-Dist: beautifulsoup4==4.11.1
15
16
  Requires-Dist: CurrencyConverter==0.17.9
16
17
  Requires-Dist: matplotlib==3.7.0
@@ -20,16 +21,21 @@ Requires-Dist: tenacity==8.2.2
20
21
  Requires-Dist: urllib3==2.1.0
21
22
  Dynamic: license-file
22
23
 
24
+ <div align="center">
25
+
23
26
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
27
+ [![GitHub Release](https://img.shields.io/github/v/release/ashiven/cs2tracker)](https://github.com/ashiven/cs2tracker/releases)
24
28
  [![PyPI version](https://badge.fury.io/py/cs2tracker.svg)](https://badge.fury.io/py/cs2tracker)
29
+ [![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/ashiven/cs2tracker)](https://github.com/ashiven/cs2tracker/issues)
30
+ [![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-pr/ashiven/cs2tracker)](https://github.com/ashiven/cs2tracker/pulls)
31
+ ![GitHub Repo stars](https://img.shields.io/github/stars/ashiven/cs2tracker)
32
+
33
+ </div>
25
34
 
26
35
  ## About
27
36
 
28
37
  **CS2Tracker** is a tool that can be used to keep track of the steam market prices of your CS2 investment.
29
38
 
30
- ![demo](https://github.com/user-attachments/assets/6bd13c96-55ea-4857-8910-f97f5ce78704)
31
-
32
-
33
39
  ## Getting Started
34
40
 
35
41
  ### Prerequisites
@@ -1,13 +1,18 @@
1
+ <div align="center">
2
+
1
3
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+ [![GitHub Release](https://img.shields.io/github/v/release/ashiven/cs2tracker)](https://github.com/ashiven/cs2tracker/releases)
2
5
  [![PyPI version](https://badge.fury.io/py/cs2tracker.svg)](https://badge.fury.io/py/cs2tracker)
6
+ [![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/ashiven/cs2tracker)](https://github.com/ashiven/cs2tracker/issues)
7
+ [![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-pr/ashiven/cs2tracker)](https://github.com/ashiven/cs2tracker/pulls)
8
+ ![GitHub Repo stars](https://img.shields.io/github/stars/ashiven/cs2tracker)
9
+
10
+ </div>
3
11
 
4
12
  ## About
5
13
 
6
14
  **CS2Tracker** is a tool that can be used to keep track of the steam market prices of your CS2 investment.
7
15
 
8
- ![demo](https://github.com/user-attachments/assets/6bd13c96-55ea-4857-8910-f97f5ce78704)
9
-
10
-
11
16
  ## Getting Started
12
17
 
13
18
  ### Prerequisites
@@ -0,0 +1,14 @@
1
+ from cs2tracker.main import main
2
+
3
+
4
+ def entry_point():
5
+ """
6
+ The entry point for the CS2Tracker application.
7
+
8
+ Calls the main function to start the application.
9
+ """
10
+ main()
11
+
12
+
13
+ if __name__ == "__main__":
14
+ entry_point()
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '2.1.1'
21
- __version_tuple__ = version_tuple = (2, 1, 1)
20
+ __version__ = version = '2.1.2'
21
+ __version_tuple__ = version_tuple = (2, 1, 2)
@@ -1,14 +1,14 @@
1
- import csv
2
- import datetime
3
1
  import os
4
2
  import subprocess
5
3
  import tkinter as tk
4
+ from typing import cast
6
5
 
7
6
  import matplotlib.pyplot as plt
7
+ from matplotlib.axes import Axes
8
8
  from matplotlib.dates import DateFormatter
9
9
 
10
- from .constants import CONFIG_FILE, OUTPUT_FILE, TEXT_EDITOR
11
- from .scraper import Scraper
10
+ from cs2tracker.constants import CONFIG_FILE, OUTPUT_FILE, TEXT_EDITOR
11
+ from cs2tracker.scraper import Scraper
12
12
 
13
13
 
14
14
  class Application:
@@ -16,6 +16,16 @@ class Application:
16
16
  self.scraper = Scraper()
17
17
 
18
18
  def run(self):
19
+ """Run the main application window with buttons for scraping prices, editing the
20
+ configuration, showing history in a chart, and editing the log file.
21
+ """
22
+ application_window = self._configure_window()
23
+ application_window.mainloop()
24
+
25
+ def _configure_window(self):
26
+ """Configure the main application window layout with buttons for the various
27
+ actions.
28
+ """
19
29
  window = tk.Tk()
20
30
  window.title("CS2Tracker")
21
31
  window.geometry("400x400")
@@ -25,12 +35,8 @@ class Application:
25
35
 
26
36
  run_button = tk.Button(window, text="Run!", command=self._scrape_prices)
27
37
  edit_button = tk.Button(window, text="Edit Config", command=self._edit_config)
28
- plot_button = tk.Button(
29
- window, text="Show History (Chart)", command=self._draw_plot
30
- )
31
- plotfile_button = tk.Button(
32
- window, text="Show History (File)", command=self._plot_file
33
- )
38
+ plot_button = tk.Button(window, text="Show History (Chart)", command=self._draw_plot)
39
+ plotfile_button = tk.Button(window, text="Show History (File)", command=self._edit_log_file)
34
40
 
35
41
  run_button.grid(row=1, column=0, pady=10, sticky="NSEW")
36
42
  edit_button.grid(row=2, column=0, pady=10, sticky="NSEW")
@@ -48,24 +54,28 @@ class Application:
48
54
  plot_button.grid_configure(sticky="NSEW")
49
55
  plotfile_button.grid_configure(sticky="NSEW")
50
56
 
51
- window.mainloop()
57
+ return window
52
58
 
53
59
  def _scrape_prices(self):
60
+ """Scrape prices from the configured sources, print the total, and save the
61
+ results to a file.
62
+ """
54
63
  self.scraper.scrape_prices()
55
- self.scraper.print_total()
56
- self.scraper.save_to_file()
57
64
 
58
65
  def _edit_config(self):
66
+ """Edit the configuration file using the specified text editor."""
59
67
  subprocess.call([TEXT_EDITOR, CONFIG_FILE])
60
- config = self.scraper.parse_config()
61
- self.scraper.set_config(config)
68
+ self.scraper.parse_config()
62
69
 
63
70
  def _draw_plot(self):
64
- datesp, dollars, euros = self._parse_output()
71
+ """Draw a plot of the scraped prices over time."""
72
+ dates, dollars, euros = self.scraper.read_price_log()
65
73
 
66
- fig, ax = plt.subplots()
67
- ax.plot(datesp, dollars, label="Dollars")
68
- ax.plot(datesp, euros, label="Euros")
74
+ fig, ax_raw = plt.subplots()
75
+ ax = cast(Axes, ax_raw)
76
+
77
+ ax.plot(dates, dollars, label="Dollars")
78
+ ax.plot(dates, euros, label="Euros")
69
79
  ax.set_xlabel("Date")
70
80
  ax.set_ylabel("Price")
71
81
  ax.legend()
@@ -76,39 +86,8 @@ class Application:
76
86
 
77
87
  plt.show()
78
88
 
79
- def _parse_output(self):
80
- def parse_row(row):
81
- date_str, price_str = row
82
- price = float(price_str[:-1])
83
- return date_str, price
84
-
85
- dates = []
86
- dollars = []
87
- euros = []
88
- row_num = 0
89
-
90
- if not os.path.isfile(OUTPUT_FILE):
91
- open(OUTPUT_FILE, "w", encoding="utf-8").close()
92
-
93
- with open(OUTPUT_FILE, "r", newline="", encoding="utf-8") as csvfile:
94
- reader = csv.reader(csvfile)
95
- for row in reader:
96
- row_num += 1
97
- date, price = parse_row(row)
98
- if row_num % 2 == 0:
99
- euros.append(price)
100
- else:
101
- dollars.append(price)
102
- dates.append(date)
103
-
104
- datesp = []
105
- for date_str in dates:
106
- date = datetime.datetime.strptime(date_str[:-9], "%Y-%m-%d")
107
- datesp.append(date)
108
-
109
- return datesp, dollars, euros
110
-
111
- def _plot_file(self):
89
+ def _edit_log_file(self):
90
+ """Opens the file containing past price calculations."""
112
91
  if not os.path.isfile(OUTPUT_FILE):
113
92
  open(OUTPUT_FILE, "w", encoding="utf-8").close()
114
93
  subprocess.call([TEXT_EDITOR, OUTPUT_FILE])
@@ -0,0 +1,271 @@
1
+ import os
2
+ import sys
3
+
4
+ TEXT_EDITOR = "notepad" if sys.platform == "win32" else "nano"
5
+ BASE_DIR = os.path.dirname(os.path.abspath(__file__)).replace("\\", "/")
6
+ OUTPUT_FILE = f"{BASE_DIR}/data/output.csv"
7
+ CONFIG_FILE = f"{BASE_DIR}/data/config.ini"
8
+
9
+
10
+ RMR_CAPSULES = {
11
+ "page": "https://steamcommunity.com/market/search?q=2020+rmr",
12
+ "items": [
13
+ "https://steamcommunity.com/market/listings/730/2020%20RMR%20Legends",
14
+ "https://steamcommunity.com/market/listings/730/2020%20RMR%20Challengers",
15
+ "https://steamcommunity.com/market/listings/730/2020%20RMR%20Contenders",
16
+ ],
17
+ "names": ["RMR Legends", "RMR Challengers", "RMR Contenders"],
18
+ }
19
+
20
+ STOCKHOLM_CAPSULES = {
21
+ "page": "https://steamcommunity.com/market/search?q=stockholm+capsule",
22
+ "items": [
23
+ "https://steamcommunity.com/market/listings/730/Stockholm%202021%20Legends%20Sticker%20Capsule",
24
+ "https://steamcommunity.com/market/listings/730/Stockholm%202021%20Challengers%20Sticker%20Capsule",
25
+ "https://steamcommunity.com/market/listings/730/Stockholm%202021%20Contenders%20Sticker%20Capsule",
26
+ "https://steamcommunity.com/market/listings/730/Stockholm%202021%20Champions%20Autograph%20Capsule",
27
+ "https://steamcommunity.com/market/listings/730/Stockholm%202021%20Finalists%20Autograph%20Capsule",
28
+ ],
29
+ "names": [
30
+ "Stockholm Legends",
31
+ "Stockholm Challengers",
32
+ "Stockholm Contenders",
33
+ "Stockholm Champions Autographs",
34
+ "Stockholm Finalists Autographs",
35
+ ],
36
+ }
37
+
38
+ ANTWERP_CAPSULES = {
39
+ "page": "https://steamcommunity.com/market/search?q=antwerp+capsule",
40
+ "items": [
41
+ "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Legends%20Sticker%20Capsule",
42
+ "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Challengers%20Sticker%20Capsule",
43
+ "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Contenders%20Sticker%20Capsule",
44
+ "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Champions%20Autograph%20Capsule",
45
+ "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Challengers%20Autograph%20Capsule",
46
+ "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Legends%20Autograph%20Capsule",
47
+ "https://steamcommunity.com/market/listings/730/Antwerp%202022%20Contenders%20Autograph%20Capsule",
48
+ ],
49
+ "names": [
50
+ "Antwerp Legends",
51
+ "Antwerp Challengers",
52
+ "Antwerp Contenders",
53
+ "Antwerp Champions Autographs",
54
+ "Antwerp Challengers Autographs",
55
+ "Antwerp Legends Autographs",
56
+ "Antwerp Contenders Autographs",
57
+ ],
58
+ }
59
+
60
+ RIO_CAPSULES = {
61
+ "page": "https://steamcommunity.com/market/search?q=rio+capsule",
62
+ "items": [
63
+ "https://steamcommunity.com/market/listings/730/Rio%202022%20Legends%20Sticker%20Capsule",
64
+ "https://steamcommunity.com/market/listings/730/Rio%202022%20Challengers%20Sticker%20Capsule",
65
+ "https://steamcommunity.com/market/listings/730/Rio%202022%20Contenders%20Sticker%20Capsule",
66
+ "https://steamcommunity.com/market/listings/730/Rio%202022%20Champions%20Autograph%20Capsule",
67
+ "https://steamcommunity.com/market/listings/730/Rio%202022%20Challengers%20Autograph%20Capsule",
68
+ "https://steamcommunity.com/market/listings/730/Rio%202022%20Legends%20Autograph%20Capsule",
69
+ "https://steamcommunity.com/market/listings/730/Rio%202022%20Contenders%20Autograph%20Capsule",
70
+ ],
71
+ "names": [
72
+ "Rio Legends",
73
+ "Rio Challengers",
74
+ "Rio Contenders",
75
+ "Rio Champions Autographs",
76
+ "Rio Challengers Autographs",
77
+ "Rio Legends Autographs",
78
+ "Rio Contenders Autographs",
79
+ ],
80
+ }
81
+
82
+ PARIS_CAPSULES = {
83
+ "page": "https://steamcommunity.com/market/search?q=paris+capsule",
84
+ "items": [
85
+ "https://steamcommunity.com/market/listings/730/Paris%202023%20Legends%20Sticker%20Capsule",
86
+ "https://steamcommunity.com/market/listings/730/Paris%202023%20Challengers%20Sticker%20Capsule",
87
+ "https://steamcommunity.com/market/listings/730/Paris%202023%20Contenders%20Sticker%20Capsule",
88
+ "https://steamcommunity.com/market/listings/730/Paris%202023%20Champions%20Autograph%20Capsule",
89
+ "https://steamcommunity.com/market/listings/730/Paris%202023%20Challengers%20Autograph%20Capsule",
90
+ "https://steamcommunity.com/market/listings/730/Paris%202023%20Legends%20Autograph%20Capsule",
91
+ "https://steamcommunity.com/market/listings/730/Paris%202023%20Contenders%20Autograph%20Capsule",
92
+ ],
93
+ "names": [
94
+ "Paris Legends",
95
+ "Paris Challengers",
96
+ "Paris Contenders",
97
+ "Paris Champions Autographs",
98
+ "Paris Challengers Autographs",
99
+ "Paris Legends Autographs",
100
+ "Paris Contenders Autographs",
101
+ ],
102
+ }
103
+
104
+ COPENHAGEN_CAPSULES = {
105
+ "page": "https://steamcommunity.com/market/search?q=copenhagen+capsule",
106
+ "items": [
107
+ "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Legends%20Sticker%20Capsule",
108
+ "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Challengers%20Sticker%20Capsule",
109
+ "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Contenders%20Sticker%20Capsule",
110
+ "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Champions%20Autograph%20Capsule",
111
+ "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Challengers%20Autograph%20Capsule",
112
+ "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Legends%20Autograph%20Capsule",
113
+ "https://steamcommunity.com/market/listings/730/Copenhagen%202024%20Contenders%20Autograph%20Capsule",
114
+ ],
115
+ "names": [
116
+ "Copenhagen Legends",
117
+ "Copenhagen Challengers",
118
+ "Copenhagen Contenders",
119
+ "Copenhagen Champions Autographs",
120
+ "Copenhagen Challengers Autographs",
121
+ "Copenhagen Legends Autographs",
122
+ "Copenhagen Contenders Autographs",
123
+ ],
124
+ }
125
+
126
+ SHANGHAI_CAPSULES = {
127
+ "page": "https://steamcommunity.com/market/search?q=shanghai+capsule",
128
+ "items": [
129
+ "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Legends%20Sticker%20Capsule",
130
+ "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Challengers%20Sticker%20Capsule",
131
+ "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Contenders%20Sticker%20Capsule",
132
+ "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Champions%20Autograph%20Capsule",
133
+ "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Challengers%20Autograph%20Capsule",
134
+ "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Legends%20Autograph%20Capsule",
135
+ "https://steamcommunity.com/market/listings/730/Shanghai%202024%20Contenders%20Autograph%20Capsule",
136
+ ],
137
+ "names": [
138
+ "Shanghai Legends",
139
+ "Shanghai Challengers",
140
+ "Shanghai Contenders",
141
+ "Shanghai Champions Autographs",
142
+ "Shanghai Challengers Autographs",
143
+ "Shanghai Legends Autographs",
144
+ "Shanghai Contenders Autographs",
145
+ ],
146
+ }
147
+
148
+
149
+ AUSTIN_CAPSULES = {
150
+ "page": "https://steamcommunity.com/market/search?q=austin+capsule",
151
+ "items": [
152
+ "https://steamcommunity.com/market/listings/730/Austin%202025%20Legends%20Sticker%20Capsule",
153
+ "https://steamcommunity.com/market/listings/730/Austin%202025%20Challengers%20Sticker%20Capsule",
154
+ "https://steamcommunity.com/market/listings/730/Austin%202025%20Contenders%20Sticker%20Capsule",
155
+ "https://steamcommunity.com/market/listings/730/Austin%202025%20Champions%20Autograph%20Capsule",
156
+ "https://steamcommunity.com/market/listings/730/Austin%202025%20Challengers%20Autograph%20Capsule",
157
+ "https://steamcommunity.com/market/listings/730/Austin%202025%20Legends%20Autograph%20Capsule",
158
+ "https://steamcommunity.com/market/listings/730/Austin%202025%20Contenders%20Autograph%20Capsule",
159
+ ],
160
+ "names": [
161
+ "Austin Legends",
162
+ "Austin Challengers",
163
+ "Austin Contenders",
164
+ "Austin Champions Autographs",
165
+ "Austin Challengers Autographs",
166
+ "Austin Legends Autographs",
167
+ "Austin Contenders Autographs",
168
+ ],
169
+ }
170
+
171
+ CAPSULE_INFO = {
172
+ "2020 RMR Sticker Capsule": RMR_CAPSULES,
173
+ "Stockholm Sticker Capsule": STOCKHOLM_CAPSULES,
174
+ "Antwerp Sticker Capsule": ANTWERP_CAPSULES,
175
+ "Rio Sticker Capsule": RIO_CAPSULES,
176
+ "Paris Sticker Capsule": PARIS_CAPSULES,
177
+ "Copenhagen Sticker Capsule": COPENHAGEN_CAPSULES,
178
+ "Shanghai Sticker Capsule": SHANGHAI_CAPSULES,
179
+ "Austin Sticker Capsule": AUSTIN_CAPSULES,
180
+ }
181
+
182
+
183
+ CASE_PAGES = [
184
+ "https://steamcommunity.com/market/search?q=revolution+case",
185
+ "https://steamcommunity.com/market/search?q=recoil+case",
186
+ "https://steamcommunity.com/market/search?q=dreams+and+nightmares+case",
187
+ "https://steamcommunity.com/market/search?q=operation+riptide+case",
188
+ "https://steamcommunity.com/market/search?q=snakebite+case",
189
+ "https://steamcommunity.com/market/search?q=broken+fang+case",
190
+ "https://steamcommunity.com/market/search?q=fracture+case",
191
+ "https://steamcommunity.com/market/search?q=chroma+case",
192
+ "https://steamcommunity.com/market/search?q=chroma+case",
193
+ "https://steamcommunity.com/market/search?q=chroma+case",
194
+ "https://steamcommunity.com/market/search?q=clutch+case",
195
+ "https://steamcommunity.com/market/search?q=csgo+weapon+case",
196
+ "https://steamcommunity.com/market/search?q=csgo+weapon+case",
197
+ "https://steamcommunity.com/market/search?q=csgo+weapon+case",
198
+ "https://steamcommunity.com/market/search?q=cs20+case",
199
+ "https://steamcommunity.com/market/search?q=danger+zone+case",
200
+ "https://steamcommunity.com/market/search?q=esports+case",
201
+ "https://steamcommunity.com/market/search?q=esports+case",
202
+ "https://steamcommunity.com/market/search?q=esports+case",
203
+ "https://steamcommunity.com/market/search?q=falchion+case",
204
+ "https://steamcommunity.com/market/search?q=gamma+case",
205
+ "https://steamcommunity.com/market/search?q=gamma+case",
206
+ "https://steamcommunity.com/market/search?q=glove+case",
207
+ "https://steamcommunity.com/market/search?q=horizon+case",
208
+ "https://steamcommunity.com/market/search?q=huntsman+weapon+case",
209
+ "https://steamcommunity.com/market/search?q=operation+bravo+case",
210
+ "https://steamcommunity.com/market/search?q=operation+breakout+case",
211
+ "https://steamcommunity.com/market/search?q=operation+hydra+case",
212
+ "https://steamcommunity.com/market/search?q=operation+phoenix+case",
213
+ "https://steamcommunity.com/market/search?q=operation+vanguard+case",
214
+ "https://steamcommunity.com/market/search?q=operation+wildfire+case",
215
+ "https://steamcommunity.com/market/search?q=prisma+case",
216
+ "https://steamcommunity.com/market/search?q=prisma+case",
217
+ "https://steamcommunity.com/market/search?q=revolver+case",
218
+ "https://steamcommunity.com/market/search?q=shadow+case",
219
+ "https://steamcommunity.com/market/search?q=shattered+web+case",
220
+ "https://steamcommunity.com/market/search?q=spectrum+case",
221
+ "https://steamcommunity.com/market/search?q=spectrum+case",
222
+ "https://steamcommunity.com/market/search?q=winter+offensive+case",
223
+ "https://steamcommunity.com/market/search?q=kilowatt+case",
224
+ "https://steamcommunity.com/market/search?q=gallery+case",
225
+ "https://steamcommunity.com/market/search?q=fever+case",
226
+ ]
227
+
228
+ CASE_HREFS = [
229
+ "https://steamcommunity.com/market/listings/730/Revolution%20Case",
230
+ "https://steamcommunity.com/market/listings/730/Recoil%20Case",
231
+ "https://steamcommunity.com/market/listings/730/Dreams%20%26%20Nightmares%20Case",
232
+ "https://steamcommunity.com/market/listings/730/Operation%20Riptide%20Case",
233
+ "https://steamcommunity.com/market/listings/730/Snakebite%20Case",
234
+ "https://steamcommunity.com/market/listings/730/Operation%20Broken%20Fang%20Case",
235
+ "https://steamcommunity.com/market/listings/730/Fracture%20Case",
236
+ "https://steamcommunity.com/market/listings/730/Chroma%20Case",
237
+ "https://steamcommunity.com/market/listings/730/Chroma%202%20Case",
238
+ "https://steamcommunity.com/market/listings/730/Chroma%203%20Case",
239
+ "https://steamcommunity.com/market/listings/730/Clutch%20Case",
240
+ "https://steamcommunity.com/market/listings/730/CS%3AGO%20Weapon%20Case",
241
+ "https://steamcommunity.com/market/listings/730/CS%3AGO%20Weapon%20Case%202",
242
+ "https://steamcommunity.com/market/listings/730/CS%3AGO%20Weapon%20Case%203",
243
+ "https://steamcommunity.com/market/listings/730/CS20%20Case",
244
+ "https://steamcommunity.com/market/listings/730/Danger%20Zone%20Case",
245
+ "https://steamcommunity.com/market/listings/730/eSports%202013%20Case",
246
+ "https://steamcommunity.com/market/listings/730/eSports%202013%20Winter%20Case",
247
+ "https://steamcommunity.com/market/listings/730/eSports%202014%20Summer%20Case",
248
+ "https://steamcommunity.com/market/listings/730/Falchion%20Case",
249
+ "https://steamcommunity.com/market/listings/730/Gamma%20Case",
250
+ "https://steamcommunity.com/market/listings/730/Gamma%202%20Case",
251
+ "https://steamcommunity.com/market/listings/730/Glove%20Case",
252
+ "https://steamcommunity.com/market/listings/730/Horizon%20Case",
253
+ "https://steamcommunity.com/market/listings/730/Huntsman%20Weapon%20Case",
254
+ "https://steamcommunity.com/market/listings/730/Operation%20Bravo%20Case",
255
+ "https://steamcommunity.com/market/listings/730/Operation%20Breakout%20Weapon%20Case",
256
+ "https://steamcommunity.com/market/listings/730/Operation%20Hydra%20Case",
257
+ "https://steamcommunity.com/market/listings/730/Operation%20Phoenix%20Weapon%20Case",
258
+ "https://steamcommunity.com/market/listings/730/Operation%20Vanguard%20Weapon%20Case",
259
+ "https://steamcommunity.com/market/listings/730/Operation%20Wildfire%20Case",
260
+ "https://steamcommunity.com/market/listings/730/Prisma%20Case",
261
+ "https://steamcommunity.com/market/listings/730/Prisma%202%20Case",
262
+ "https://steamcommunity.com/market/listings/730/Revolver%20Case",
263
+ "https://steamcommunity.com/market/listings/730/Shadow%20Case",
264
+ "https://steamcommunity.com/market/listings/730/Shattered%20Web%20Case",
265
+ "https://steamcommunity.com/market/listings/730/Spectrum%20Case",
266
+ "https://steamcommunity.com/market/listings/730/Spectrum%202%20Case",
267
+ "https://steamcommunity.com/market/listings/730/Winter%20Offensive%20Weapon%20Case",
268
+ "https://steamcommunity.com/market/listings/730/Kilowatt%20Case",
269
+ "https://steamcommunity.com/market/listings/730/Gallery%20Case",
270
+ "https://steamcommunity.com/market/listings/730/Fever%20Case",
271
+ ]
@@ -1,16 +1,16 @@
1
- [2020 RMR]
1
+ [2020 RMR Sticker Capsule]
2
2
  RMR_Challengers = 0
3
3
  RMR_Legends = 0
4
4
  RMR_Contenders = 0
5
5
 
6
- [Stockholm]
6
+ [Stockholm Sticker Capsule]
7
7
  Stockholm_Challengers = 0
8
8
  Stockholm_Legends = 0
9
9
  Stockholm_Contenders = 0
10
10
  Stockholm_Champions_Autographs = 0
11
11
  Stockholm_Finalists_Autographs = 0
12
12
 
13
- [Antwerp]
13
+ [Antwerp Sticker Capsule]
14
14
  Antwerp_Challengers = 0
15
15
  Antwerp_Legends = 0
16
16
  Antwerp_Contenders = 0
@@ -19,7 +19,7 @@ Antwerp_Contenders_Autographs = 0
19
19
  Antwerp_Challengers_Autographs = 0
20
20
  Antwerp_Legends_Autographs = 0
21
21
 
22
- [Rio]
22
+ [Rio Sticker Capsule]
23
23
  Rio_Challengers = 0
24
24
  Rio_Legends = 0
25
25
  Rio_Contenders = 0
@@ -28,7 +28,7 @@ Rio_Contenders_Autographs = 0
28
28
  Rio_Challengers_Autographs = 0
29
29
  Rio_Legends_Autographs = 0
30
30
 
31
- [Paris]
31
+ [Paris Sticker Capsule]
32
32
  Paris_Challengers = 0
33
33
  Paris_Legends = 0
34
34
  Paris_Contenders = 0
@@ -37,7 +37,7 @@ Paris_Contenders_Autographs = 0
37
37
  Paris_Challengers_Autographs = 0
38
38
  Paris_Legends_Autographs = 0
39
39
 
40
- [Copenhagen]
40
+ [Copenhagen Sticker Capsule]
41
41
  Copenhagen_Challengers = 0
42
42
  Copenhagen_Legends = 0
43
43
  Copenhagen_Contenders = 0
@@ -46,7 +46,7 @@ Copenhagen_Contenders_Autographs = 0
46
46
  Copenhagen_Challengers_Autographs = 0
47
47
  Copenhagen_Legends_Autographs = 0
48
48
 
49
- [Shanghai]
49
+ [Shanghai Sticker Capsule]
50
50
  Shanghai_Challengers = 0
51
51
  Shanghai_Legends = 0
52
52
  Shanghai_Contenders = 0
@@ -55,7 +55,7 @@ Shanghai_Contenders_Autographs = 0
55
55
  Shanghai_Challengers_Autographs = 0
56
56
  Shanghai_Legends_Autographs = 0
57
57
 
58
- [Austin]
58
+ [Austin Sticker Capsule]
59
59
  Austin_Challengers = 0
60
60
  Austin_Legends = 0
61
61
  Austin_Contenders = 0
@@ -108,6 +108,6 @@ Kilowatt_Case = 0
108
108
  Gallery_Case = 0
109
109
  Fever_Case = 0
110
110
 
111
- [Proxy API Key]
111
+ [Settings]
112
112
  Use_Proxy = False
113
113
  API_Key = None
@@ -3,11 +3,18 @@ from datetime import datetime
3
3
  import urllib3
4
4
  from rich.console import Console
5
5
 
6
- from ._version import version
7
- from .application import Application
6
+ from cs2tracker._version import version # pylint: disable=E0611
7
+ from cs2tracker.application import Application
8
8
 
9
9
 
10
10
  def main():
11
+ """
12
+ The main entry point for the CS2Tracker application.
13
+
14
+ Provides a console output with the application version and date, and initializes the
15
+ application.
16
+ """
17
+
11
18
  ## disable warnings for proxy requests
12
19
  urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
13
20
 
@@ -25,7 +32,7 @@ def main():
25
32
 
26
33
 
27
34
  """
28
- + f"Version: v{version} - {datetime.today().strftime('%Y/%m/%d')} - Jannik Novak @ashiven_\n"
35
+ + f"Version: v{version} - {datetime.today().strftime('%Y/%m/%d')} - Jannik Novak @ashiven\n"
29
36
  )
30
37
 
31
38
  application = Application()