from bs4 import BeautifulSoup from dhooks import Embed from discord im

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from bs4 import BeautifulSoup
from dhooks import Embed
from discord import Webhook ,RequestsWebhookAdapter, File
import requests
proxies=[
'58.158.68.26:8811',
]
list={
'http':'',
'https':''
}
def latency_check(proxies):
for proxy in proxies:
list['http']=proxy
list['https']=proxy
print(list)
response = requests.get("https://www.google.com/", proxies=list)
#if response.status_code == requests.codes['ok']:
# print(proxy, "latency check passed, valid")
#else:
# print(proxy, "latency check failed")
#url = "http://jsonip.com"
#r = requests.get(url,proxies=proxy)
#ip= r.json()['ip']
#print ('Your IP is', ip)
latency_check(proxies)