Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -30,8 +30,6 @@ async def get_proxies(
|
|
| 30 |
protocol = protocol.lower()
|
| 31 |
|
| 32 |
# Construct the query to the upstream provider
|
| 33 |
-
# We use ProxyScrape because your requested GitHub link did not have proxy data.
|
| 34 |
-
# ProxyScrape allows country filtering.
|
| 35 |
api_url = f"{BASE_URL}?request=getproxies&protocol={protocol}&timeout={timeout}&country={country}&ssl=all&anonymity=all"
|
| 36 |
|
| 37 |
async with httpx.AsyncClient() as client:
|
|
@@ -55,15 +53,15 @@ async def get_proxies(
|
|
| 55 |
def list_common_countries():
|
| 56 |
"""Helper to show codes for Torpedo users"""
|
| 57 |
return """
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
|
|
|
| 30 |
protocol = protocol.lower()
|
| 31 |
|
| 32 |
# Construct the query to the upstream provider
|
|
|
|
|
|
|
| 33 |
api_url = f"{BASE_URL}?request=getproxies&protocol={protocol}&timeout={timeout}&country={country}&ssl=all&anonymity=all"
|
| 34 |
|
| 35 |
async with httpx.AsyncClient() as client:
|
|
|
|
| 53 |
def list_common_countries():
|
| 54 |
"""Helper to show codes for Torpedo users"""
|
| 55 |
return """
|
| 56 |
+
Common Country Codes:
|
| 57 |
+
US = United States
|
| 58 |
+
DE = Germany
|
| 59 |
+
FR = France
|
| 60 |
+
GB = United Kingdom
|
| 61 |
+
BR = Brazil
|
| 62 |
+
IN = India
|
| 63 |
+
RU = Russia
|
| 64 |
+
CN = China
|
| 65 |
+
CA = Canada
|
| 66 |
+
AU = Australia
|
| 67 |
+
ALL = All Countries
|