PyPtt 1.2.4__tar.gz → 1.2.6__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.
- {PyPtt-1.2.4 → pyptt-1.2.6}/PKG-INFO +1 -1
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/PTT.py +2 -2
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/__init__.py +1 -1
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_get_newest_index.py +2 -2
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_mail.py +2 -0
- pyptt-1.2.6/PyPtt/ssl/cert.pem +12 -0
- pyptt-1.2.6/PyPtt/ssl/key.pem +8 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt.egg-info/PKG-INFO +1 -1
- PyPtt-1.2.4/PyPtt/ssl/cert.pem +0 -20
- PyPtt-1.2.4/PyPtt/ssl/key.pem +0 -28
- {PyPtt-1.2.4 → pyptt-1.2.6}/LICENSE +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/MANIFEST.in +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_bucket.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_call_status.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_change_pw.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_comment.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_del_post.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_get_board_info.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_get_board_list.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_get_bottom_post_list.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_get_favourite_board.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_get_post.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_get_post_index.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_get_time.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_get_user.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_give_money.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_has_new_mail.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_loginout.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_mark_post.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_post.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_reply_post.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_search_user.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_set_board_title.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/_api_util.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/check_value.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/command.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/config.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/connect_core.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/data_type.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/exceptions.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/i18n.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/lang/en_US.yaml +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/lang/zh_TW.yaml +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/lib_util.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/log.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/screens.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt/service.py +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt.egg-info/SOURCES.txt +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt.egg-info/dependency_links.txt +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt.egg-info/requires.txt +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/PyPtt.egg-info/top_level.txt +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/README.md +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/setup.cfg +0 -0
- {PyPtt-1.2.4 → pyptt-1.2.6}/setup.py +0 -0
|
@@ -352,14 +352,14 @@ class API:
|
|
|
352
352
|
|
|
353
353
|
def get_newest_index(self, index_type: data_type.NewIndex, board: Optional[str] = None,
|
|
354
354
|
search_type: Optional[data_type.SearchType] = None, search_condition: Optional[str] = None,
|
|
355
|
-
search_list: Optional[List[Tuple[Any
|
|
355
|
+
search_list: Optional[List[Tuple[Any, str]]] = None) -> int:
|
|
356
356
|
"""
|
|
357
357
|
取得最新文章或信箱編號。
|
|
358
358
|
|
|
359
359
|
Args:
|
|
360
360
|
index_type (:ref:`new-index`): 編號類型。
|
|
361
361
|
board (str): 看板名稱。
|
|
362
|
-
search_list (List[str]): 搜尋清單。
|
|
362
|
+
search_list (List[Tuple[Any | str]]): 搜尋清單。
|
|
363
363
|
|
|
364
364
|
Returns:
|
|
365
365
|
int,最新文章或信箱編號。
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import re
|
|
4
|
-
from typing import Optional
|
|
4
|
+
from typing import Optional, Any, List, Tuple
|
|
5
5
|
|
|
6
6
|
from . import _api_util
|
|
7
7
|
from . import check_value
|
|
@@ -55,7 +55,7 @@ def _get_newest_index(api) -> int:
|
|
|
55
55
|
|
|
56
56
|
def get_newest_index(api, index_type: data_type.NewIndex, board: Optional[str] = None,
|
|
57
57
|
search_type: data_type.SearchType = None, search_condition: Optional[str] = None,
|
|
58
|
-
search_list: Optional[
|
|
58
|
+
search_list: Optional[List[Tuple[Any, str]]] = None) -> int:
|
|
59
59
|
_api_util.one_thread(api)
|
|
60
60
|
|
|
61
61
|
if not api._is_login:
|
|
@@ -181,6 +181,8 @@ def get_mail(api, index: int, search_type: Optional[data_type.SearchType] = None
|
|
|
181
181
|
mail_author = None
|
|
182
182
|
else:
|
|
183
183
|
mail_author = pattern_result.group(0)[2:].strip()
|
|
184
|
+
if '看板' in mail_author:
|
|
185
|
+
mail_author = mail_author[:mail_author.find('看板')].strip()
|
|
184
186
|
|
|
185
187
|
# 使用表示式分析信件標題
|
|
186
188
|
pattern_result = mail_title_pattern.search(origin_mail)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
|
2
|
+
MIIBrTCCAVOgAwIBAgIUac6b6rzwFIEa9VBigD0jYlE96NkwCgYIKoZIzj0EAwIw
|
|
3
|
+
RTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGElu
|
|
4
|
+
dGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yNDA0MTEwNzA4NDJaFw0zNDA0MDkw
|
|
5
|
+
NzA4NDJaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYD
|
|
6
|
+
VQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwWTATBgcqhkjOPQIBBggqhkjO
|
|
7
|
+
PQMBBwNCAASGL9hdVzbi6QTzJk409Ne+ZMnK2iQcm6VcAacTyJvQqCEIQysJtRs+
|
|
8
|
+
/53XjdOORHgDfsMK94T4CG6TbULqCT+uoyEwHzAdBgNVHQ4EFgQUoR2GjY1nFWvR
|
|
9
|
+
gTyu936KF11kvL0wCgYIKoZIzj0EAwIDSAAwRQIhAOQ33wHzCv7F2yI8Ye4BHdtZ
|
|
10
|
+
SOW7IgU5rRkFlMPhTXj6AiBGE0+EZPNctmBfj2N8s6lYIxsGmlcSnWVxlQvj6XQc
|
|
11
|
+
Uw==
|
|
12
|
+
-----END CERTIFICATE-----
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
-----BEGIN EC PARAMETERS-----
|
|
2
|
+
BggqhkjOPQMBBw==
|
|
3
|
+
-----END EC PARAMETERS-----
|
|
4
|
+
-----BEGIN EC PRIVATE KEY-----
|
|
5
|
+
MHcCAQEEIO6ELVhrKQdW1YcoP3VOGW4XKGyVmlVdPHxou5XDDlU3oAoGCCqGSM49
|
|
6
|
+
AwEHoUQDQgAEhi/YXVc24ukE8yZONPTXvmTJytokHJulXAGnE8ib0KghCEMrCbUb
|
|
7
|
+
Pv+d143TjkR4A37DCveE+Ahuk21C6gk/rg==
|
|
8
|
+
-----END EC PRIVATE KEY-----
|
PyPtt-1.2.4/PyPtt/ssl/cert.pem
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
|
2
|
-
MIIDOTCCAiGgAwIBAgIUWXN9WODZaK4kDWG3qbqUAkuCj04wDQYJKoZIhvcNAQEL
|
|
3
|
-
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
|
|
4
|
-
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yNDA0MTAxNDU0NDFaFw0zNDA0
|
|
5
|
-
MDgxNDU0NDFaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw
|
|
6
|
-
HwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GC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NaJTKEgczeZvjVKuszQKBgQDFoY2LlW5XLlEMnjUkEAlfjSim8ijD8TtJ
|
|
17
|
-
v3Z9nfBHJyNvZq6VonOsetem76noanlxjds91gecRz77zSGpZE4ohbpJ7HFbf6YX
|
|
18
|
-
J15ZLwBkDzfaFiU4FjVosKXY9mxL2JL6A2ej9Mt4ukN9XGlgT7BvF6ovPIBEAYZ7
|
|
19
|
-
ufAXMa4L6wKBgBszQ0KlDtxPt5w+gxhX/nI6lpOzbqdtVwOtD5itBlaq9QIYwu0F
|
|
20
|
-
79rqrOEtwLS3rWcdsd40SXDpuZorNd5//OEnoWQl8ZZwP0BnBj+TsP2SwrSVxa0Y
|
|
21
|
-
/RA7Nufe47WagYFIrIWj0N6mftAIej/aFeGbqTY82zprJGzfe8KQdHN5AoGASIfF
|
|
22
|
-
3th0qmJBNJRLhHSuO/ceWEa/V0oNLD+sSOXR7QscIiJZKGl6cm6S/p0uijGpaFdb
|
|
23
|
-
gxItsNkk8FyUYgqB9LU/bSntYFs0pYK5SZnKVu6O3OcLuc3MxCMwerPVgvB04HSn
|
|
24
|
-
cLDCjAgwBK4JrmMQqXTR7IwTtuGobXgL+TcuXQkCgYBEAfZRQgVAEno/M6gHOUHY
|
|
25
|
-
38FjqS3a4/sb0clzjPWVDCWoHHtzZuz9Fnhc0NJK/XlmOMZ5UrAysSQZz1HFthZm
|
|
26
|
-
cuzaRlaRPxLf6VhLTnhUKlILPkejJuumhNX4c+TT7aYcZ9BNE6KS/hI+Q7o9P29P
|
|
27
|
-
EBt+YfXiQNkCOrCXj92Dpw==
|
|
28
|
-
-----END PRIVATE KEY-----
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|