PlaywrightCapture 1.32.2__py3-none-any.whl → 1.32.3__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.
- playwrightcapture/capture.py +3 -2
- {playwrightcapture-1.32.2.dist-info → playwrightcapture-1.32.3.dist-info}/METADATA +1 -1
- {playwrightcapture-1.32.2.dist-info → playwrightcapture-1.32.3.dist-info}/RECORD +5 -5
- {playwrightcapture-1.32.2.dist-info → playwrightcapture-1.32.3.dist-info}/LICENSE +0 -0
- {playwrightcapture-1.32.2.dist-info → playwrightcapture-1.32.3.dist-info}/WHEEL +0 -0
playwrightcapture/capture.py
CHANGED
@@ -4,6 +4,7 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import asyncio
|
6
6
|
import binascii
|
7
|
+
# import hashlib
|
7
8
|
import json
|
8
9
|
import logging
|
9
10
|
import os
|
@@ -18,7 +19,7 @@ from logging import LoggerAdapter, Logger
|
|
18
19
|
from tempfile import NamedTemporaryFile
|
19
20
|
from typing import Any, Literal, TYPE_CHECKING
|
20
21
|
from collections.abc import MutableMapping
|
21
|
-
from urllib.parse import urlparse, unquote, urljoin, urlsplit, urlunsplit
|
22
|
+
from urllib.parse import urlparse, unquote, urljoin, urlsplit, urlunsplit, unquote_plus
|
22
23
|
from zipfile import ZipFile
|
23
24
|
|
24
25
|
import aiohttp
|
@@ -1178,7 +1179,7 @@ class Capture():
|
|
1178
1179
|
except Exception as e:
|
1179
1180
|
self.logger.warning(f'Unable to get favicons: {e}')
|
1180
1181
|
|
1181
|
-
to_return['last_redirected_url'] = page.url
|
1182
|
+
to_return['last_redirected_url'] = unquote_plus(page.url)
|
1182
1183
|
|
1183
1184
|
if with_screenshot:
|
1184
1185
|
to_return['png'] = await self._failsafe_get_screenshot(page)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
playwrightcapture/__init__.py,sha256=48NKCITflPkKB74WvDmUik4RH6ojRotsL98vf3l8MbY,748
|
2
|
-
playwrightcapture/capture.py,sha256=
|
2
|
+
playwrightcapture/capture.py,sha256=Qwses39VtxIE-9zuXAqD8W0ie3AjpSXGFx6PwljyKW0,92897
|
3
3
|
playwrightcapture/exceptions.py,sha256=LhGJQCGHzEu7Sx2Dfl28OFeDg1OmrwufFjAWXlxQnEA,366
|
4
4
|
playwrightcapture/helpers.py,sha256=Xqs09zHhzAWnpBtQ0A9YAxg80P3Lj7aBj5M2WuEr0so,1843
|
5
5
|
playwrightcapture/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
playwrightcapture/socks5dnslookup.py,sha256=ZpOf8tgsRQZi-WDcn9JbbG1bKz9DSfK_jz1l53UI1Ho,4058
|
7
|
-
playwrightcapture-1.32.
|
8
|
-
playwrightcapture-1.32.
|
9
|
-
playwrightcapture-1.32.
|
10
|
-
playwrightcapture-1.32.
|
7
|
+
playwrightcapture-1.32.3.dist-info/LICENSE,sha256=uwFc39fTLacBUG-XTuxX6IQKTKhg4z14gWOLt3ex4Ho,1775
|
8
|
+
playwrightcapture-1.32.3.dist-info/METADATA,sha256=kl90tkBH1OvpkwnjCQGcQqqERHsE7mhvxrexAASEet4,3284
|
9
|
+
playwrightcapture-1.32.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
10
|
+
playwrightcapture-1.32.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|