arizona-forum-api-async 1.1.3__py3-none-any.whl → 1.2__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.3.dist-info → arizona_forum_api_async-1.2.dist-info}/METADATA +2 -3
- {arizona_forum_api_async-1.1.3.dist-info → arizona_forum_api_async-1.2.dist-info}/RECORD +5 -5
- arizona_forum_async/api.py +22 -3
- {arizona_forum_api_async-1.1.3.dist-info → arizona_forum_api_async-1.2.dist-info}/WHEEL +0 -0
- {arizona_forum_api_async-1.1.3.dist-info → arizona_forum_api_async-1.2.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: arizona-forum-api-async
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.2
|
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
|
@@ -77,8 +77,7 @@ pip install arizona-forum-api-async
|
|
77
77
|
|
78
78
|
## Документация и примеры
|
79
79
|
|
80
|
-
* **[
|
81
|
-
* **[Документация оригинальной библиотеки](https://tastybread123.github.io/Arizona-API/arz_api.html):** Документация для оригинальной синхронной библиотеки.
|
80
|
+
* **[Официальная документация](https://docs.fakelag.tech/arz_forum_api/general-info):** Полное руководство по использованию асинхронной версии API.
|
82
81
|
* **[Папка с примерами](https://github.com/fakelag28/Arizona-Forum-API-Async/tree/main/examples):** Практические примеры, демонстрирующие различные возможности библиотеки.
|
83
82
|
|
84
83
|
---
|
@@ -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=E1J1kqV_M3C50F0jOqSFjXG-bxo8cy0LPvZTLThRmAc,95837
|
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.
|
14
|
-
arizona_forum_api_async-1.
|
15
|
-
arizona_forum_api_async-1.
|
16
|
-
arizona_forum_api_async-1.
|
13
|
+
arizona_forum_api_async-1.2.dist-info/METADATA,sha256=D7WbqWOJGjlpNPO-gkJJ1EXQSBCbYzyu7qfHTd-Mm0o,4834
|
14
|
+
arizona_forum_api_async-1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
15
|
+
arizona_forum_api_async-1.2.dist-info/top_level.txt,sha256=a9GRkw-bNV0GUAHWG7S7n5lGQvBuNu6dfXWF5WqEw6A,20
|
16
|
+
arizona_forum_api_async-1.2.dist-info/RECORD,,
|
arizona_forum_async/api.py
CHANGED
@@ -266,7 +266,13 @@ class ArizonaAPI:
|
|
266
266
|
|
267
267
|
|
268
268
|
create_date_tag = content_soup.find('time')
|
269
|
-
create_date =
|
269
|
+
create_date = 0
|
270
|
+
if create_date_tag and create_date_tag.has_attr('data-time'):
|
271
|
+
data_time_value = create_date_tag['data-time']
|
272
|
+
if data_time_value.isdigit():
|
273
|
+
create_date = int(data_time_value)
|
274
|
+
else:
|
275
|
+
create_date = 0
|
270
276
|
|
271
277
|
prefix_tag = content_h1_soup.find('span', {'class': 'label'})
|
272
278
|
if prefix_tag:
|
@@ -340,7 +346,13 @@ class ArizonaAPI:
|
|
340
346
|
return None
|
341
347
|
|
342
348
|
create_date_tag = post_article.find('time', {'class': 'u-dt'})
|
343
|
-
create_date =
|
349
|
+
create_date = 0
|
350
|
+
if create_date_tag and create_date_tag.has_attr('data-time'):
|
351
|
+
data_time_value = create_date_tag['data-time']
|
352
|
+
if data_time_value.isdigit():
|
353
|
+
create_date = int(data_time_value)
|
354
|
+
else:
|
355
|
+
create_date = 0
|
344
356
|
|
345
357
|
html_content_tag = post_article.find('div', {'class': 'bbWrapper'})
|
346
358
|
html_content = str(html_content_tag) if html_content_tag else ""
|
@@ -399,7 +411,14 @@ class ArizonaAPI:
|
|
399
411
|
return None
|
400
412
|
|
401
413
|
create_date_tag = post_article.find('time')
|
402
|
-
create_date =
|
414
|
+
create_date = 0
|
415
|
+
if create_date_tag and create_date_tag.has_attr('data-time'):
|
416
|
+
data_time_value = create_date_tag['data-time']
|
417
|
+
if data_time_value.isdigit():
|
418
|
+
create_date = int(data_time_value)
|
419
|
+
else:
|
420
|
+
create_date = 0
|
421
|
+
|
403
422
|
|
404
423
|
html_content_tag = post_article.find('div', {'class': 'bbWrapper'})
|
405
424
|
html_content = str(html_content_tag) if html_content_tag else ""
|
File without changes
|
{arizona_forum_api_async-1.1.3.dist-info → arizona_forum_api_async-1.2.dist-info}/top_level.txt
RENAMED
File without changes
|