sticker-convert 2.8.13__py3-none-any.whl → 2.8.14__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.
- sticker_convert/downloaders/download_kakao.py +34 -12
- sticker_convert/version.py +1 -1
- {sticker_convert-2.8.13.dist-info → sticker_convert-2.8.14.dist-info}/METADATA +1 -2
- {sticker_convert-2.8.13.dist-info → sticker_convert-2.8.14.dist-info}/RECORD +8 -8
- {sticker_convert-2.8.13.dist-info → sticker_convert-2.8.14.dist-info}/LICENSE +0 -0
- {sticker_convert-2.8.13.dist-info → sticker_convert-2.8.14.dist-info}/WHEEL +0 -0
- {sticker_convert-2.8.13.dist-info → sticker_convert-2.8.14.dist-info}/entry_points.txt +0 -0
- {sticker_convert-2.8.13.dist-info → sticker_convert-2.8.14.dist-info}/top_level.txt +0 -0
@@ -3,13 +3,13 @@ from __future__ import annotations
|
|
3
3
|
|
4
4
|
import itertools
|
5
5
|
import json
|
6
|
+
import re
|
6
7
|
import zipfile
|
7
8
|
from io import BytesIO
|
8
9
|
from pathlib import Path
|
9
10
|
from typing import Any, List, Optional, Tuple, cast
|
10
11
|
from urllib.parse import urlparse
|
11
12
|
|
12
|
-
import js2py # type: ignore
|
13
13
|
import requests
|
14
14
|
from bs4 import BeautifulSoup
|
15
15
|
from bs4.element import Tag
|
@@ -72,17 +72,39 @@ class MetadataKakao:
|
|
72
72
|
js = js[func_start_pos:]
|
73
73
|
bracket_start_pos = js.find("{")
|
74
74
|
func_end_pos = search_bracket(js[bracket_start_pos:]) + bracket_start_pos
|
75
|
-
js = js[
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
)
|
85
|
-
|
75
|
+
js = js[bracket_start_pos + 1 : func_end_pos]
|
76
|
+
js = js.split(";")[0]
|
77
|
+
|
78
|
+
minus_num_regex = re.search(r"\-(.*?)\^", js)
|
79
|
+
if not minus_num_regex:
|
80
|
+
return None, None
|
81
|
+
minus_num_str = minus_num_regex.group(1)
|
82
|
+
if not minus_num_str.isnumeric():
|
83
|
+
return None, None
|
84
|
+
minus_num = int(minus_num_str)
|
85
|
+
|
86
|
+
xor_num_regex = re.search(r"\^(.*?)\)", js)
|
87
|
+
if not xor_num_regex:
|
88
|
+
return None, None
|
89
|
+
xor_num_str = xor_num_regex.group(1)
|
90
|
+
if not xor_num_str.isnumeric():
|
91
|
+
return None, None
|
92
|
+
xor_num = int(xor_num_str)
|
93
|
+
|
94
|
+
item_code = str(int(item_code_fake) - minus_num ^ xor_num)
|
95
|
+
|
96
|
+
# https://github.com/Nuitka/Nuitka/issues/385
|
97
|
+
# js2py not working if compiled by nuitka
|
98
|
+
# web2app_start_pos = js.find("daumtools.web2app(")
|
99
|
+
# js = js[:web2app_start_pos] + "return a;}"
|
100
|
+
# get_item_code = js2py.eval_js(js) # type: ignore
|
101
|
+
# kakao_scheme_link = cast(
|
102
|
+
# str,
|
103
|
+
# get_item_code(
|
104
|
+
# "kakaotalk://store/emoticon/${i}?referer=share_link", item_code_fake
|
105
|
+
# ),
|
106
|
+
# )
|
107
|
+
# item_code = urlparse(kakao_scheme_link).path.split("/")[-1]
|
86
108
|
|
87
109
|
return pack_title, item_code
|
88
110
|
|
sticker_convert/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sticker-convert
|
3
|
-
Version: 2.8.
|
3
|
+
Version: 2.8.14
|
4
4
|
Summary: Convert (animated) stickers to/from WhatsApp, Telegram, Signal, Line, Kakao, Viber, iMessage. Written in Python.
|
5
5
|
Author-email: laggykiller <chaudominic2@gmail.com>
|
6
6
|
Maintainer-email: laggykiller <chaudominic2@gmail.com>
|
@@ -371,7 +371,6 @@ Requires-Dist: av ~=12.1.0
|
|
371
371
|
Requires-Dist: beautifulsoup4 ~=4.12.3
|
372
372
|
Requires-Dist: rookiepy ~=0.5.1
|
373
373
|
Requires-Dist: imagequant ~=1.1.1
|
374
|
-
Requires-Dist: js2py ~=0.74
|
375
374
|
Requires-Dist: memory-tempfile ~=2.2.3
|
376
375
|
Requires-Dist: mergedeep ~=1.3.4
|
377
376
|
Requires-Dist: numpy >=1.22.4
|
@@ -6,10 +6,10 @@ sticker_convert/definitions.py,sha256=ZhP2ALCEud-w9ZZD4c3TDG9eHGPZyaAL7zPUsJAbjt
|
|
6
6
|
sticker_convert/gui.py,sha256=TRPGwMhSMPHnZppHmw2OWHKTJtGoeLpGWD0eRYi4_yk,30707
|
7
7
|
sticker_convert/job.py,sha256=vKv1--y4MVmZV_IBpUhEfNEiUeEqrTR1umzlALPXKdw,25775
|
8
8
|
sticker_convert/job_option.py,sha256=JHAFCxp7-dDwD-1PbpYLAFRF3OoJu8cj_BjOm5r8Gp8,7732
|
9
|
-
sticker_convert/version.py,sha256=
|
9
|
+
sticker_convert/version.py,sha256=xfnmuNP-PsbPT9tAIe1hZe8BVTotwNbxoJXlFmvcuP4,47
|
10
10
|
sticker_convert/downloaders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
sticker_convert/downloaders/download_base.py,sha256=x18bI2mPpbXRnSmStBHEb1IvN-VPCilOHLQUs6YPUEU,4041
|
12
|
-
sticker_convert/downloaders/download_kakao.py,sha256=
|
12
|
+
sticker_convert/downloaders/download_kakao.py,sha256=hHilDDzYaGU5BQmOwMF0NKnsysxh8loybfoFSNQQdSw,14955
|
13
13
|
sticker_convert/downloaders/download_line.py,sha256=9WzOWujTbZdAqBi52k21OUEfRmcV1loCaJiDmg6dklw,17853
|
14
14
|
sticker_convert/downloaders/download_signal.py,sha256=PfwscdbcEd_5C3Ecs0F8Qc8si1sLzLodAdnsHVwXgac,3063
|
15
15
|
sticker_convert/downloaders/download_telegram.py,sha256=jufMqc78aXOPDr7fQf9ykkNyhQ7KVCp4gRBxs09NgMo,4614
|
@@ -93,9 +93,9 @@ sticker_convert/utils/media/apple_png_normalize.py,sha256=LbrQhc7LlYX4I9ek4XJsZE
|
|
93
93
|
sticker_convert/utils/media/codec_info.py,sha256=1QfW3wgZ5vOk7T4XtLHYvJK1x8RbASRPSvhKEPkcu9A,15747
|
94
94
|
sticker_convert/utils/media/decrypt_kakao.py,sha256=4wq9ZDRnFkx1WmFZnyEogBofiLGsWQM_X69HlA36578,1947
|
95
95
|
sticker_convert/utils/media/format_verify.py,sha256=Xf94jyqk_6M9IlFGMy0wYIgQKn_yg00nD4XW0CgAbew,5732
|
96
|
-
sticker_convert-2.8.
|
97
|
-
sticker_convert-2.8.
|
98
|
-
sticker_convert-2.8.
|
99
|
-
sticker_convert-2.8.
|
100
|
-
sticker_convert-2.8.
|
101
|
-
sticker_convert-2.8.
|
96
|
+
sticker_convert-2.8.14.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
97
|
+
sticker_convert-2.8.14.dist-info/METADATA,sha256=oMOCYbDpT4foe2pN0gsrfAAG1DASm8ak3uUjc9tpCpA,50376
|
98
|
+
sticker_convert-2.8.14.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
99
|
+
sticker_convert-2.8.14.dist-info/entry_points.txt,sha256=MNJ7XyC--ugxi5jS1nzjDLGnxCyLuaGdsVLnJhDHCqs,66
|
100
|
+
sticker_convert-2.8.14.dist-info/top_level.txt,sha256=r9vfnB0l1ZnH5pTH5RvkobnK3Ow9m0RsncaOMAtiAtk,16
|
101
|
+
sticker_convert-2.8.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|