rustat-python-api 0.4.7__tar.gz → 0.4.9__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.
- {rustat-python-api-0.4.7/rustat_python_api.egg-info → rustat-python-api-0.4.9}/PKG-INFO +1 -1
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api/parser.py +14 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api/urls.py +2 -1
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9/rustat_python_api.egg-info}/PKG-INFO +1 -1
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/setup.py +1 -1
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/LICENSE +0 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/README.md +0 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/pyproject.toml +0 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api/__init__.py +0 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api/config.py +0 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api/models_api.py +0 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api/processing.py +0 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api.egg-info/SOURCES.txt +0 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api.egg-info/dependency_links.txt +0 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api.egg-info/requires.txt +0 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api.egg-info/top_level.txt +0 -0
- {rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/setup.cfg +0 -0
|
@@ -192,3 +192,17 @@ class RuStatParser:
|
|
|
192
192
|
stats[param_name][team_id] = param_value
|
|
193
193
|
|
|
194
194
|
return stats
|
|
195
|
+
|
|
196
|
+
def get_players_match_stats(self, match_id: int) -> dict:
|
|
197
|
+
data = self.resp2data(
|
|
198
|
+
self.urls["player_match_stats"].format(
|
|
199
|
+
user=self.user,
|
|
200
|
+
password=self.password,
|
|
201
|
+
match_id=match_id
|
|
202
|
+
)
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
if not data:
|
|
206
|
+
return {}
|
|
207
|
+
|
|
208
|
+
return data['team'] if 'team' in data else {}
|
|
@@ -3,5 +3,6 @@ URLs = {
|
|
|
3
3
|
"events": "http://feeds.rustatsport.ru/?tpl=36&user={user}&key={password}&match_id={match_id}&start_ms=0&dl=0&lang_id=1&format=json",
|
|
4
4
|
"match_stats": "http://feeds.rustatsport.ru/?tpl=207&user={user}&key={password}&match_id={match_id}&lang_id=1&format=json",
|
|
5
5
|
"tournament_teams": "http://feeds.rustatsport.ru/?tpl=32&user={user}&key={password}&tournament_id=2&season_id={season_id}&date_start=&date_end=&lang_id=1&format=json",
|
|
6
|
-
"tracking": "https://feeds.rustatsport.ru/?tpl=274&user={user}&key={password}&match_id={match_id}&lang_id=0&format=json"
|
|
6
|
+
"tracking": "https://feeds.rustatsport.ru/?tpl=274&user={user}&key={password}&match_id={match_id}&lang_id=0&format=json",
|
|
7
|
+
"player_match_stats": "http://feeds.rustatsport.ru/?tpl=227&user={user}&key={password}&match_id={match_id}&lang_id=1&format=json"
|
|
7
8
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rustat-python-api-0.4.7 → rustat-python-api-0.4.9}/rustat_python_api.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|