MalikSahib1 commited on
Commit
3f0ba13
·
verified ·
1 Parent(s): e9ae7c4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +12 -14
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
- Common Country Codes:
59
- US = United States
60
- DE = Germany
61
- FR = France
62
- GB = United Kingdom
63
- BR = Brazil
64
- IN = India
65
- RU = Russia
66
- CN = China
67
- CA = Canada
68
- AU = Australia
69
- ALL = All Countries
 
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