arizona-forum-api-async 1.1__py3-none-any.whl → 1.1.1__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.
- {arizona_forum_api_async-1.1.dist-info → arizona_forum_api_async-1.1.1.dist-info}/METADATA +8 -11
- {arizona_forum_api_async-1.1.dist-info → arizona_forum_api_async-1.1.1.dist-info}/RECORD +5 -5
- {arizona_forum_api_async-1.1.dist-info → arizona_forum_api_async-1.1.1.dist-info}/WHEEL +1 -1
- arizona_forum_async/api.py +8 -1
- {arizona_forum_api_async-1.1.dist-info → arizona_forum_api_async-1.1.1.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.1
|
2
2
|
Name: arizona-forum-api-async
|
3
|
-
Version: 1.1
|
3
|
+
Version: 1.1.1
|
4
4
|
Summary: Асинхронная Python библиотека для взаимодействия с форумом Arizona RP (forum.arizona-rp.com) без необходимости получения API ключа.
|
5
5
|
Home-page: https://github.com/fakelag28/Arizona-Forum-API-Async
|
6
6
|
Author: fakelag28
|
@@ -15,15 +15,6 @@ Requires-Dist: aiohttp-socks
|
|
15
15
|
Requires-Dist: beautifulsoup4
|
16
16
|
Requires-Dist: dukpy
|
17
17
|
Requires-Dist: lxml
|
18
|
-
Dynamic: author
|
19
|
-
Dynamic: author-email
|
20
|
-
Dynamic: classifier
|
21
|
-
Dynamic: description
|
22
|
-
Dynamic: description-content-type
|
23
|
-
Dynamic: home-page
|
24
|
-
Dynamic: requires-dist
|
25
|
-
Dynamic: requires-python
|
26
|
-
Dynamic: summary
|
27
18
|
|
28
19
|
# Arizona Forum API Async
|
29
20
|
|
@@ -80,3 +71,9 @@ pip install arizona-forum-api-async
|
|
80
71
|
* **[Wiki (Расширенная документация синхронной версии)](https://github.com/fakelag28/Arizona-Forum-API-Extended/wiki/Основная-документация):** Подробная документация для другой [расширенной синхронной версии](https://github.com/fakelag28/Arizona-Forum-API-Extended/).
|
81
72
|
* **[Документация оригинальной библиотеки](https://tastybread123.github.io/Arizona-API/arz_api.html):** Документация для оригинальной синхронной библиотеки.
|
82
73
|
* **[Папка с примерами](https://github.com/fakelag28/Arizona-Forum-API-Async/tree/main/examples):** Практические примеры, демонстрирующие различные возможности библиотеки.
|
74
|
+
|
75
|
+
---
|
76
|
+
|
77
|
+
## Лицензия
|
78
|
+
|
79
|
+
Этот проект лицензирован под **MIT License**.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
arizona_forum_async/__init__.py,sha256=LJfbSfw1rC8SKOl5AON1KYPnuKA8CamlgEaNRbMybI4,68
|
2
|
-
arizona_forum_async/api.py,sha256=
|
2
|
+
arizona_forum_async/api.py,sha256=1xZ_ZP9mZ_JrfoC9GVZ41PaUMmqAADjyWrU576Js6SQ,94874
|
3
3
|
arizona_forum_async/consts.py,sha256=AlYiIL9Z5t_HvZfaPKfQc72yg6cbl_VHvEs3GYIo3JU,527
|
4
4
|
arizona_forum_async/exceptions.py,sha256=mcWTrRgl1m5ljMYK2-WlNXWnnKSzI5K7fd_EYxJ6-eo,563
|
5
5
|
arizona_forum_async/bypass_antibot/__init__.py,sha256=8FaH5DlQ4acb-sjj-CUYmLsm1Y2zrB2zPVWayybokGo,21
|
@@ -10,7 +10,7 @@ arizona_forum_async/models/member_object.py,sha256=8DpJ-IbQkMnEQZAD9hWGRJT4rXECG
|
|
10
10
|
arizona_forum_async/models/other.py,sha256=hC9Hg749RRSULUpZ_l_cT5VwpsrG1MOFGZ8MyP3nuCc,536
|
11
11
|
arizona_forum_async/models/post_object.py,sha256=eJ3YrO1QbYtpCcErV1jfRfGFuXNmpXYwaIZT0h5sjVM,6097
|
12
12
|
arizona_forum_async/models/thread_object.py,sha256=pCrv1yRY01EYEMEbQES6TUeR5yfJGPE0oaS17nTsmxI,5737
|
13
|
-
arizona_forum_api_async-1.1.dist-info/METADATA,sha256=
|
14
|
-
arizona_forum_api_async-1.1.dist-info/WHEEL,sha256=
|
15
|
-
arizona_forum_api_async-1.1.dist-info/top_level.txt,sha256=a9GRkw-bNV0GUAHWG7S7n5lGQvBuNu6dfXWF5WqEw6A,20
|
16
|
-
arizona_forum_api_async-1.1.dist-info/RECORD,,
|
13
|
+
arizona_forum_api_async-1.1.1.dist-info/METADATA,sha256=_h6MtbDcFwqpIhRM6sQ4bLkFCXP517p4bLGHqpbb03g,5035
|
14
|
+
arizona_forum_api_async-1.1.1.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
|
15
|
+
arizona_forum_api_async-1.1.1.dist-info/top_level.txt,sha256=a9GRkw-bNV0GUAHWG7S7n5lGQvBuNu6dfXWF5WqEw6A,20
|
16
|
+
arizona_forum_api_async-1.1.1.dist-info/RECORD,,
|
arizona_forum_async/api.py
CHANGED
@@ -1391,11 +1391,18 @@ class ArizonaAPI:
|
|
1391
1391
|
avatar_match = re.search(r'src="([^"]+)"', user.get('iconHtml', ''))
|
1392
1392
|
avatar = avatar_match.group(1) if avatar_match else None
|
1393
1393
|
|
1394
|
+
profile_url = None
|
1395
|
+
if user.get('username_color'):
|
1396
|
+
parts = user['username_color'].split('href="')
|
1397
|
+
if len(parts) > 1:
|
1398
|
+
url_part = parts[1].split('"')[0]
|
1399
|
+
profile_url = f"{MAIN_URL}{url_part}"
|
1400
|
+
|
1394
1401
|
user_data = {
|
1395
1402
|
'user_id': user_id,
|
1396
1403
|
'username': user.get('id'),
|
1397
1404
|
'avatar': avatar,
|
1398
|
-
'profile_url':
|
1405
|
+
'profile_url': profile_url
|
1399
1406
|
}
|
1400
1407
|
results.append(user_data)
|
1401
1408
|
except (ValueError, KeyError, AttributeError) as e:
|
{arizona_forum_api_async-1.1.dist-info → arizona_forum_api_async-1.1.1.dist-info}/top_level.txt
RENAMED
File without changes
|