swiftshadow 2.2.0__py3-none-any.whl → 2.2.1__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.
- swiftshadow/providers.py +6 -11
- {swiftshadow-2.2.0.dist-info → swiftshadow-2.2.1.dist-info}/METADATA +1 -1
- {swiftshadow-2.2.0.dist-info → swiftshadow-2.2.1.dist-info}/RECORD +6 -6
- {swiftshadow-2.2.0.dist-info → swiftshadow-2.2.1.dist-info}/WHEEL +0 -0
- {swiftshadow-2.2.0.dist-info → swiftshadow-2.2.1.dist-info}/entry_points.txt +0 -0
- {swiftshadow-2.2.0.dist-info → swiftshadow-2.2.1.dist-info}/licenses/LICENSE +0 -0
swiftshadow/providers.py
CHANGED
@@ -23,6 +23,10 @@ async def Monosans(
|
|
23
23
|
for proxy_dict in proxy_dicts:
|
24
24
|
if proxy_dict["protocol"] != protocol:
|
25
25
|
continue
|
26
|
+
if ("country" not in proxy_dict["geolocation"].keys() # Avoid errors where geolocation is none
|
27
|
+
and len(countries) != 0
|
28
|
+
):
|
29
|
+
continue
|
26
30
|
if (
|
27
31
|
len(countries) != 0
|
28
32
|
and proxy_dict["geolocation"]["country"]["iso_code"] not in countries
|
@@ -86,7 +90,8 @@ async def OpenProxyList(
|
|
86
90
|
countries: list[str] = [], protocol: Literal["http", "https"] = "http"
|
87
91
|
):
|
88
92
|
results = await GenericPlainTextProxyProvider(
|
89
|
-
"https://
|
93
|
+
"https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/HTTPS_RAW.txt",
|
94
|
+
"http",
|
90
95
|
)
|
91
96
|
return results
|
92
97
|
|
@@ -117,15 +122,6 @@ async def Anonym0usWork1221(
|
|
117
122
|
return results
|
118
123
|
|
119
124
|
|
120
|
-
async def ProxySpace(
|
121
|
-
countries: list[str] = [], protocol: Literal["http", "https"] = "http"
|
122
|
-
):
|
123
|
-
results = await GenericPlainTextProxyProvider(
|
124
|
-
"https://proxyspace.pro/http.txt", "http"
|
125
|
-
)
|
126
|
-
return results
|
127
|
-
|
128
|
-
|
129
125
|
async def ProxyDB(
|
130
126
|
countries: list[str] = [], protocol: Literal["http", "https"] = "http"
|
131
127
|
):
|
@@ -184,7 +180,6 @@ Providers: list[Provider] = [
|
|
184
180
|
),
|
185
181
|
Provider(providerFunction=Mmpx12, countryFilter=False, protocols=["http", "https"]),
|
186
182
|
Provider(providerFunction=GoodProxy, countryFilter=False, protocols=["http"]),
|
187
|
-
Provider(providerFunction=ProxySpace, countryFilter=False, protocols=["http"]),
|
188
183
|
Provider(providerFunction=OpenProxyList, countryFilter=False, protocols=["http"]),
|
189
184
|
Provider(providerFunction=ProxyDB, countryFilter=True, protocols=["http", "https"]),
|
190
185
|
]
|
@@ -4,11 +4,11 @@ swiftshadow/classes.py,sha256=hXAyvRuGXDvj_TsZxJ-bapK0pL82lhZUBGQZbQiGWN0,12280
|
|
4
4
|
swiftshadow/exceptions.py,sha256=qu4eXyrkWD9qd4HCIR-8vRfVcqLlTupo4sD72alCdug,129
|
5
5
|
swiftshadow/helpers.py,sha256=b8my66sBw_lTVLaKu4SaGjYQqEfIaStsuZlmK9Pmy5Y,1294
|
6
6
|
swiftshadow/models.py,sha256=rHOuOFc6UYCI8L2pwxAbvS3Fj0Ag89cHod0rt7kQ2Vc,1790
|
7
|
-
swiftshadow/providers.py,sha256=
|
7
|
+
swiftshadow/providers.py,sha256=6H-PoXTCQUB7Vop0Wu7DBfMhwiYCvXCF1u_iCM7NcU4,6546
|
8
8
|
swiftshadow/types.py,sha256=Alyw3n54OESX1vSR-0kTvpYTlJ8LKfy5J9WZbtglHpE,894
|
9
9
|
swiftshadow/validator.py,sha256=3qE-99uljtbin1125uOgqAjnLRjuIgNYO5iiUAmaBC8,3102
|
10
|
-
swiftshadow-2.2.
|
11
|
-
swiftshadow-2.2.
|
12
|
-
swiftshadow-2.2.
|
13
|
-
swiftshadow-2.2.
|
14
|
-
swiftshadow-2.2.
|
10
|
+
swiftshadow-2.2.1.dist-info/METADATA,sha256=4w-4O9PpR8nCpMVihakZrUNBIKH6QhCNq6OggQOpcVk,3320
|
11
|
+
swiftshadow-2.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
12
|
+
swiftshadow-2.2.1.dist-info/entry_points.txt,sha256=yMj0uEagcmXK2dmMmNXWebTpTT9j5K03oaRrd2wkyLA,49
|
13
|
+
swiftshadow-2.2.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
14
|
+
swiftshadow-2.2.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|