forked from ayka667/guns.lol-view-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
60 lines (59 loc) · 3 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from concurrent.futures import ThreadPoolExecutor
import random
import colorama
import cloudscraper
banner=""" ▄▄ • ▄• ▄▌ ▐ ▄ .▄▄ · ▄▄▌ ▄▄▌ ▌ ▐·▪ ▄▄▄ .▄▄▌ ▐ ▄▌▄▄▄▄· ▄▄▄▄▄
▐█ ▀ ▪█▪██▌•█▌▐█▐█ ▀. ██• ▄█▀▄ ██• ▪█·█▌██ ▀▄.▀·██· █▌▐█▐█ ▀█▪ ▄█▀▄ •██
▄█ ▀█▄█▌▐█▌▐█▐▐▌▄▀▀▀█▄ ██▪ ▐█▌.▐▌██▪ ▐█▐█•▐█·▐▀▀▪▄██▪▐█▐▐▌▐█▀▀█▄▐█▌.▐▌ ▐█.▪
▐█▄▪▐█▐█▄█▌██▐█▌▐█▄▪▐█ ▐█▌▐▌▐█▌.▐▌▐█▌▐▌ ███ ▐█▌▐█▄▄▌▐█▌██▐█▌██▄▪▐█▐█▌.▐▌ ▐█▌·
·▀▀▀▀ ▀▀▀ ▀▀ █▪ ▀▀▀▀ ▀ .▀▀▀ ▀█▄▀▪.▀▀▀ . ▀ ▀▀▀ ▀▀▀ ▀▀▀▀ ▀▪·▀▀▀▀ ▀█▄▀▪ ▀▀▀
"""
print(banner)
url = input("Votre pseudo guns.lol > ")
headers = {
#"cookie": "security_token=6d647174d809ee80e2ad14f80fe07cb5c2c1517d5ea72a7401b403eb5ead5c2e",
"accept": "*/*",
"accept-language": "?0; Mobile",
"cache-control": "no-cache",
"content-length": "0",
"origin": "https://guns.lol",
"pragma": "no-cache",
"priority": "u=1, i",
"referer": "https://guns.lol/"+url,
"sec-ch-ua": "\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"126\", \"Google Chrome\";v=\"126\"",
"sec-ch-ua-arch": "\"x86\"",
"sec-ch-ua-bitness": "\"64\"",
"sec-ch-ua-full-version": "\"126.0.6478.127\"",
"sec-ch-ua-full-version-list": "\"Not/A)Brand\";v=\"8.0.0.0\", \"Chromium\";v=\"126.0.6478.127\", \"Google Chrome\";v=\"126.0.6478.127\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-model": "\"\"",
"sec-ch-ua-platform": "\"Windows\"",
"sec-ch-ua-platform-version": "\"15.0.0\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",
"username": url
}
views = 0
def test():
global url, headers, views
while True:
prox = random.choice(open("proxies.txt").read().splitlines())
proxy = "http://" + prox
proxyDict = {
"http": proxy,
"https": proxy
}
try:
scraper = cloudscraper.create_scraper(delay=10)
# print("https://cfx.re/join/"+test)
response = scraper.post("https://guns.lol/api/view/"+url, headers=headers, proxies=proxyDict)
if response.status_code == 200:
views+=1
print("Vues total : "+str(views))
except Exception as e:
pass
with ThreadPoolExecutor(max_workers=301) as exc:
for i in range(300):
exc.submit(test)