PlaywrightCapture 1.24.7__tar.gz → 1.24.8__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.
- {playwrightcapture-1.24.7 → playwrightcapture-1.24.8}/PKG-INFO +1 -1
- {playwrightcapture-1.24.7 → playwrightcapture-1.24.8}/playwrightcapture/capture.py +9 -2
- {playwrightcapture-1.24.7 → playwrightcapture-1.24.8}/pyproject.toml +1 -1
- {playwrightcapture-1.24.7 → playwrightcapture-1.24.8}/LICENSE +0 -0
- {playwrightcapture-1.24.7 → playwrightcapture-1.24.8}/README.md +0 -0
- {playwrightcapture-1.24.7 → playwrightcapture-1.24.8}/playwrightcapture/__init__.py +0 -0
- {playwrightcapture-1.24.7 → playwrightcapture-1.24.8}/playwrightcapture/exceptions.py +0 -0
- {playwrightcapture-1.24.7 → playwrightcapture-1.24.8}/playwrightcapture/helpers.py +0 -0
- {playwrightcapture-1.24.7 → playwrightcapture-1.24.8}/playwrightcapture/py.typed +0 -0
@@ -1289,8 +1289,15 @@ class Capture():
|
|
1289
1289
|
session.verify = False
|
1290
1290
|
session.headers['user-agent'] = self.user_agent
|
1291
1291
|
if self.proxy and self.proxy.get('server'):
|
1292
|
-
|
1293
|
-
|
1292
|
+
proxy_server = self.proxy['server']
|
1293
|
+
# Make sure the DNS desolution is done remotely
|
1294
|
+
# https://urllib3.readthedocs.io/en/stable/advanced-usage.html#socks-proxies
|
1295
|
+
if proxy_server.startswith('socks5://'):
|
1296
|
+
proxy_server = proxy_server.replace('socks5://', 'socks5h://')
|
1297
|
+
if proxy_server.startswith('socks4://'):
|
1298
|
+
proxy_server = proxy_server.replace('socks4://', 'socks4a://')
|
1299
|
+
|
1300
|
+
proxies = {'http': proxy_server, 'https': proxy_server}
|
1294
1301
|
session.proxies.update(proxies)
|
1295
1302
|
for u in to_fetch:
|
1296
1303
|
try:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|