hltv-async-api 0.5.2__tar.gz → 0.5.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hltv_async_api
3
- Version: 0.5.2
3
+ Version: 0.5.3
4
4
  Summary: Hltv-aio An unofficial asynchronous HLTV API Wrapper for Python
5
5
  Author: Akim Slys
6
6
  Author-email: akimslys2003@gmail.com
@@ -6,4 +6,4 @@
6
6
  from .aiohltv import Hltv
7
7
 
8
8
  __author__ = 'akimerslys'
9
- __version__ = '0.5.2'
9
+ __version__ = '0.5.3'
@@ -337,6 +337,7 @@ class Hltv:
337
337
 
338
338
  except AttributeError:
339
339
  return None
340
+
340
341
  return matches
341
342
 
342
343
  async def get_match_info(self, match_id: str | int, team1: str, team2: str, event_title: str, stats: bool = True):
@@ -439,13 +440,13 @@ class Hltv:
439
440
  s_t2 = scores[1].strip()
440
441
 
441
442
  results.append({
442
- 'id': match_id,
443
- 'team1': team1,
444
- 'team2': team2,
445
- 'score1': s_t1,
446
- 'score2': s_t2,
447
- 'rating': rating,
448
- 'event': event,
443
+ 'id': match_id,
444
+ 'team1': team1,
445
+ 'team2': team2,
446
+ 'score1': s_t1,
447
+ 'score2': s_t2,
448
+ 'rating': rating,
449
+ 'event': event,
449
450
  })
450
451
 
451
452
  if regular:
@@ -481,14 +482,14 @@ class Hltv:
481
482
  s_t2 = scores[1].strip()
482
483
 
483
484
  results.append({
484
- 'id': match_id,
485
- 'date': date_,
486
- 'team1': team1,
487
- 'team2': team2,
488
- 'score1': s_t1,
489
- 'score2': s_t2,
490
- 'rating': rating,
491
- 'event': event,
485
+ 'id': match_id,
486
+ 'date': date_,
487
+ 'team1': team1,
488
+ 'team2': team2,
489
+ 'score1': s_t1,
490
+ 'score2': s_t2,
491
+ 'rating': rating,
492
+ 'event': event,
492
493
  })
493
494
 
494
495
  n += 1
@@ -503,7 +504,8 @@ class Hltv:
503
504
  match_results = []
504
505
 
505
506
  n = 0
506
- for i, result in enumerate(r.find("div", {'class', 'results-holder'}).find_all("div", {'class', 'results-sublist'}), start=1):
507
+ for i, result in enumerate(
508
+ r.find("div", {'class', 'results-holder'}).find_all("div", {'class', 'results-sublist'}), start=1):
507
509
  if i > days or n > max_:
508
510
  break
509
511
  date = self.__normalize_date(result.find("span", class_="standard-headline").text.strip())
@@ -945,8 +947,9 @@ class Hltv:
945
947
 
946
948
 
947
949
  async def test():
948
- hltv = Hltv(debug=True, timeout=1, max_delay=5, true_session=True, use_proxy=True, proxy_list=['', ''])
949
- print(await hltv.get('matches', 2371201, 'res-regional-series-3-latam', 'IMPERIAL', 'MIBR'))
950
+ hltv = Hltv(debug=True, timeout=1, max_delay=5, true_session=True, use_proxy=True, proxy_path='proxies.txt',
951
+ proxy_protocol='http')
952
+ print(await hltv.get_matches())
950
953
 
951
954
  await hltv.close_session()
952
955
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "hltv_async_api"
3
- version = "0.5.2"
3
+ version = "0.5.3"
4
4
  authors = ["Akim Slys <akimslys2003@gmail.com>"]
5
5
  description = "Hltv-aio An unofficial asynchronous HLTV API Wrapper for Python"
6
6
  readme = "README.md"
@@ -1,100 +0,0 @@
1
- 38.162.21.116:3128
2
- 38.162.22.227:3128
3
- 38.162.12.213:3128
4
- 38.162.21.1:3128
5
- 38.162.11.39:3128
6
- 38.162.23.154:3128
7
- 154.6.98.200:3128
8
- 154.6.98.201:3128
9
- 38.162.5.118:3128
10
- 38.162.21.62:3128
11
- 89.213.228.107:3128
12
- 38.162.29.203:3128
13
- 38.162.18.109:3128
14
- 38.162.12.104:3128
15
- 154.6.98.100:3128
16
- 154.6.99.1:3128
17
- 89.213.229.51:3128
18
- 38.162.13.123:3128
19
- 38.162.6.240:3128
20
- 38.162.15.7:3128
21
- 154.6.97.37:3128
22
- 38.162.11.214:3128
23
- 38.162.23.151:3128
24
- 38.162.26.58:3128
25
- 38.162.5.30:3128
26
- 38.162.4.117:3128
27
- 154.6.97.252:3128
28
- 38.162.24.83:3128
29
- 38.162.27.155:3128
30
- 38.162.11.249:3128
31
- 38.162.12.33:3128
32
- 38.162.20.110:3128
33
- 38.162.29.69:3128
34
- 89.213.230.8:3128
35
- 38.162.21.3:3128
36
- 89.213.228.254:3128
37
- 38.162.5.63:3128
38
- 38.162.4.180:3128
39
- 38.162.22.30:3128
40
- 38.162.0.158:3128
41
- 38.162.27.12:3128
42
- 89.213.229.33:3128
43
- 89.213.230.79:3128
44
- 38.162.11.130:3128
45
- 38.162.28.9:3128
46
- 89.213.231.107:3128
47
- 38.162.28.146:3128
48
- 38.162.5.177:3128
49
- 38.162.14.243:3128
50
- 154.6.99.135:3128
51
- 38.162.6.189:3128
52
- 89.213.230.64:3128
53
- 38.162.16.12:3128
54
- 38.162.24.158:3128
55
- 154.6.99.99:3128
56
- 38.162.2.218:3128
57
- 38.162.14.99:3128
58
- 38.162.31.114:3128
59
- 38.162.29.170:3128
60
- 38.162.27.133:3128
61
- 38.162.16.149:3128
62
- 154.6.99.93:3128
63
- 38.162.29.159:3128
64
- 38.162.17.57:3128
65
- 38.162.27.74:3128
66
- 38.162.23.74:3128
67
- 38.162.21.216:3128
68
- 38.162.4.225:3128
69
- 154.6.99.158:3128
70
- 38.162.17.188:3128
71
- 38.162.22.103:3128
72
- 38.162.5.61:3128
73
- 154.6.97.8:3128
74
- 38.162.19.250:3128
75
- 154.6.98.68:3128
76
- 38.162.13.135:3128
77
- 38.162.14.159:3128
78
- 38.162.30.46:3128
79
- 38.162.19.144:3128
80
- 38.162.15.243:3128
81
- 38.162.24.32:3128
82
- 38.162.27.182:3128
83
- 38.162.7.214:3128
84
- 38.162.5.146:3128
85
- 154.6.96.129:3128
86
- 38.162.27.119:3128
87
- 38.162.27.134:3128
88
- 38.162.30.14:3128
89
- 38.162.24.60:3128
90
- 89.213.231.145:3128
91
- 38.162.3.126:3128
92
- 89.213.229.124:3128
93
- 38.162.23.224:3128
94
- 154.6.98.98:3128
95
- 38.162.1.238:3128
96
- 154.6.97.218:3128
97
- 89.213.229.97:3128
98
- 38.162.3.161:3128
99
- 38.162.13.166:3128
100
- 38.162.11.227:3128
File without changes
File without changes