free-proxy 1.2.2__tar.gz → 1.2.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: free_proxy
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Proxy scraper for further use
5
5
  Home-page: https://github.com/jundymek/free-proxy
6
6
  Author: jundymek
@@ -26,7 +26,7 @@ Dynamic: summary
26
26
 
27
27
  # Free-proxy
28
28
 
29
- ![Version 1.2.2](https://img.shields.io/badge/Version-1.2.2-blue.svg)
29
+ ![Version 1.2.3](https://img.shields.io/badge/Version-1.2.3-blue.svg)
30
30
 
31
31
  ## Get free working proxies from <https://www.sslproxies.org/>, <https://www.us-proxy.org/>, <https://free-proxy-list.net/uk-proxy.html> and <https://free-proxy-list.net> and use them in your script
32
32
 
@@ -180,6 +180,10 @@ proxy = FreeProxy(request_timeout=5).get()
180
180
  ## CHANGELOG
181
181
 
182
182
  ---
183
+ ## [1.2.3] - 2026-08-24
184
+
185
+ - Fixed the proxy check silently bypassing the proxy when the test URL scheme did not match the `https` setting. With default settings (HTTP proxy mapping + HTTPS test URL) `requests` selected no proxy at all, the peername verification then rejected every candidate and `get()` always failed. The proxies mapping now covers both `http` and `https` schemes. Broken since 1.2.1.
186
+
183
187
  ## [1.2.2] - 2026-07-04
184
188
 
185
189
  - Fixed `get_proxy_list` hanging indefinitely when a source website stalls — the proxy list request now has a timeout (#58)
@@ -1,6 +1,6 @@
1
1
  # Free-proxy
2
2
 
3
- ![Version 1.2.2](https://img.shields.io/badge/Version-1.2.2-blue.svg)
3
+ ![Version 1.2.3](https://img.shields.io/badge/Version-1.2.3-blue.svg)
4
4
 
5
5
  ## Get free working proxies from <https://www.sslproxies.org/>, <https://www.us-proxy.org/>, <https://free-proxy-list.net/uk-proxy.html> and <https://free-proxy-list.net> and use them in your script
6
6
 
@@ -154,6 +154,10 @@ proxy = FreeProxy(request_timeout=5).get()
154
154
  ## CHANGELOG
155
155
 
156
156
  ---
157
+ ## [1.2.3] - 2026-08-24
158
+
159
+ - Fixed the proxy check silently bypassing the proxy when the test URL scheme did not match the `https` setting. With default settings (HTTP proxy mapping + HTTPS test URL) `requests` selected no proxy at all, the peername verification then rejected every candidate and `get()` always failed. The proxies mapping now covers both `http` and `https` schemes. Broken since 1.2.1.
160
+
157
161
  ## [1.2.2] - 2026-07-04
158
162
 
159
163
  - Fixed `get_proxy_list` hanging indefinitely when a source website stalls — the proxy list request now has a timeout (#58)
@@ -74,7 +74,11 @@ class FreeProxy:
74
74
  random.shuffle(proxy_list)
75
75
  working_proxy = None
76
76
  for proxy_address in proxy_list:
77
- proxies = {self.schema: f'http://{proxy_address}'}
77
+ # requests selects the proxy by the URL scheme, so the mapping
78
+ # must cover both -- otherwise e.g. an https test URL with the
79
+ # default http schema bypasses the proxy entirely.
80
+ proxies = {'http': f'http://{proxy_address}',
81
+ 'https': f'http://{proxy_address}'}
78
82
  try:
79
83
  working_proxy = self.__check_if_proxy_is_working(proxies)
80
84
  if working_proxy:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: free_proxy
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Proxy scraper for further use
5
5
  Home-page: https://github.com/jundymek/free-proxy
6
6
  Author: jundymek
@@ -26,7 +26,7 @@ Dynamic: summary
26
26
 
27
27
  # Free-proxy
28
28
 
29
- ![Version 1.2.2](https://img.shields.io/badge/Version-1.2.2-blue.svg)
29
+ ![Version 1.2.3](https://img.shields.io/badge/Version-1.2.3-blue.svg)
30
30
 
31
31
  ## Get free working proxies from <https://www.sslproxies.org/>, <https://www.us-proxy.org/>, <https://free-proxy-list.net/uk-proxy.html> and <https://free-proxy-list.net> and use them in your script
32
32
 
@@ -180,6 +180,10 @@ proxy = FreeProxy(request_timeout=5).get()
180
180
  ## CHANGELOG
181
181
 
182
182
  ---
183
+ ## [1.2.3] - 2026-08-24
184
+
185
+ - Fixed the proxy check silently bypassing the proxy when the test URL scheme did not match the `https` setting. With default settings (HTTP proxy mapping + HTTPS test URL) `requests` selected no proxy at all, the peername verification then rejected every candidate and `get()` always failed. The proxies mapping now covers both `http` and `https` schemes. Broken since 1.2.1.
186
+
183
187
  ## [1.2.2] - 2026-07-04
184
188
 
185
189
  - Fixed `get_proxy_list` hanging indefinitely when a source website stalls — the proxy list request now has a timeout (#58)
@@ -4,7 +4,7 @@ with open("README.md", "r") as fh:
4
4
  long_description = fh.read()
5
5
  setuptools.setup(
6
6
  name='free_proxy',
7
- version='1.2.2',
7
+ version='1.2.3',
8
8
  author="jundymek",
9
9
  author_email="jundymek@gmail.com",
10
10
  description="Proxy scraper for further use",
File without changes
File without changes
File without changes
File without changes