-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
33 lines (28 loc) · 941 Bytes
/
main.py
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
from weakref import proxy
from requests import request
from src.proxy_grab import proxyGrab
from src.config import cls
cls()
def hidemyname():
output = []
for d in range(1, 5):
request = proxyGrab.hidemyname.request(page=d)
result = proxyGrab.hidemyname.sort(request=request)
for i in result:
print(i)
output.append(i)
with open("proxies.txt", "w") as tsg:
tsg.write(str(output))
def free_proxy_list():
request = proxyGrab.free_proxy_list.request()
result = proxyGrab.free_proxy_list.sort(request)
print(result)
def geonode():
request = proxyGrab.geonode.request(proxies=5)
result = proxyGrab.geonode.sort(request)
print(result)
def proxyscrape():
request = proxyGrab.proxyscrape.request(protocol="socks5") # http, socks4, socks5 (no support ssl in proxyGrab)
result = proxyGrab.proxyscrape.sort(request)
print(result)
proxyscrape()