Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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
|
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
|
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 |
|