Xilixmeaty40 commited on
Commit
2fb4df2
·
verified ·
1 Parent(s): 504b3d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,7 +33,7 @@ class VisitRequest(BaseModel):
33
 
34
 
35
  def get_random_proxy():
36
- pubproxy_url = "http://pubproxy.com/api/proxy?limit=1"
37
  response = requests.get(pubproxy_url, verify=False)
38
  data = response.json()
39
  if data['data']:
@@ -45,7 +45,7 @@ def get_random_proxy():
45
  def get_proxies():
46
  try:
47
  proxies = []
48
- pubproxy_url = "http://pubproxy.com/api/proxy?limit=5"
49
  response = requests.get(pubproxy_url, verify=False)
50
  data = response.json()
51
 
@@ -70,7 +70,7 @@ def rotate_ip():
70
  "X-Real-IP": random_ip
71
  }
72
 
73
- test_url = "http://pubproxy.com/api/proxy?limit=5"
74
  response = requests.get(test_url, headers=headers, verify=False)
75
  data = response.json()
76
 
 
33
 
34
 
35
  def get_random_proxy():
36
+ pubproxy_url = "http://pubproxy.com/api/proxy"
37
  response = requests.get(pubproxy_url, verify=False)
38
  data = response.json()
39
  if data['data']:
 
45
  def get_proxies():
46
  try:
47
  proxies = []
48
+ pubproxy_url = "http://pubproxy.com/api/proxy"
49
  response = requests.get(pubproxy_url, verify=False)
50
  data = response.json()
51
 
 
70
  "X-Real-IP": random_ip
71
  }
72
 
73
+ test_url = "http://pubproxy.com/api/proxy"
74
  response = requests.get(test_url, headers=headers, verify=False)
75
  data = response.json()
76