We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad95d65 commit 7bde4e6Copy full SHA for 7bde4e6
yagooglesearch/__init__.py
@@ -207,17 +207,6 @@ def __init__(
207
208
# Update proxy_dict if a proxy is provided.
209
if proxy:
210
- urllib_object = urllib.parse.urlparse(self.proxy)
211
- # Standardize case since the scheme will be checked against a hard-coded list.
212
- scheme = urllib_object.scheme.lower()
213
-
214
- if scheme not in ["http", "https", "socks5", "socks5h"]:
215
- ROOT_LOGGER.error(
216
- f'The provided proxy scheme "{scheme}" is not valid and must be either "http", "https", "socks5"'
217
- ', or "socks5h"'
218
- )
219
- return []
220
221
self.proxy_dict = {
222
"http": self.proxy,
223
"https": self.proxy,
0 commit comments