Overdrive187
Elite member
Elite member
Premium
- Thread Author
- #2
im tryin out rn my py skills
you need:
invite.txt
proxies.txt
if yall can help please do
[HIDE] import requests
import threading
import time
import colorama
colorama.init()
proxies_enabled = False
proxy = None
# Set the proxy if enabled
if proxies_enabled:
proxy = {'http': 'http://usernameassword@proxyIPort', 'https': 'http://usernameassword@proxyIPort'}
def check_invite(invite):
global valid, invalid, errors, blocked, total
try:
headers = {'Content-Type': 'application/json'}
url = f"https://discord.com/api/v9/invites/{invite}"
r = requests.get(url, headers=headers, proxies=proxy, timeout=5)
if r.status_code == 200:
data = r.json()
server_name = data['guild']['name']
server_members = data['approximate_member_count']
valid += 1
print(colorama.Fore.GREEN + f"[~] Valid ({valid}) - Server: {server_name} - Members: {server_members}" + colorama.Style.RESET_ALL)
with open('output.txt', 'a') as f:
f.write(f"{invite} - Valid - Server: {server_name} - Members: {server_members}\n")
elif r.status_code == 403:
blocked += 1
print(colorama.Fore.YELLOW + f"[~] Holisticz ({blocked}) - Invite: {invite}" + colorama.Style.RESET_ALL)
elif r.status_code == 404:
invalid += 1
print(colorama.Fore.RED + f"[~] Invalid ({invalid}) - Invite: {invite}" + colorama.Style.RESET_ALL)
else:
errors += 1
print(colorama.Fore.RED + f"[~] Errors ({errors}) - Invite: {invite}" + colorama.Style.RESET_ALL)
except:
errors += 1
print(colorama.Fore.RED + f"[~] Errors ({errors}) - Invite: {invite}" + colorama.Style.RESET_ALL)
total += 1
if __name__ == "__main__":
valid = 0
invalid = 0
errors = 0
blocked = 0
total = 0
cpm = 0
with open('invite.txt') as f:
invites = f.read().splitlines()
print(f"[~] Checking {len(invites)} invites...")
start_time = time.time()
for invite in invites:
t = threading.Thread(target=check_invite, args=(invite,))
t.start()
while threading.activeCount() >= 100:
time.sleep(0.1)
while threading.activeCount() > 1:
time.sleep(0.1)
end_time = time.time()
print(f"\n[~] Done checking invites. Valid: {valid}, Invalid: {invalid}, Errors: {errors}, Holisticz: {blocked}")
print(f"[~] CPM: {int(total / (end_time - start_time) * 60)} - Remaining: {len(invites) - total}")
print(f"[~] Valid ({valid})\n[~] Invalid ({invalid})\n[~] Errors ({errors})\n[~] Holisticz ({blocked})\n[~] CPM ({int(total / (end_time - start_time) * 60)})\n[~] Remaining ({len(invites) - total})")
[/HIDE]
This is a bump
you need:
invite.txt
proxies.txt
if yall can help please do
[HIDE] import requests
import threading
import time
import colorama
colorama.init()
proxies_enabled = False
proxy = None
# Set the proxy if enabled
if proxies_enabled:
proxy = {'http': 'http://usernameassword@proxyIPort', 'https': 'http://usernameassword@proxyIPort'}
def check_invite(invite):
global valid, invalid, errors, blocked, total
try:
headers = {'Content-Type': 'application/json'}
url = f"https://discord.com/api/v9/invites/{invite}"
r = requests.get(url, headers=headers, proxies=proxy, timeout=5)
if r.status_code == 200:
data = r.json()
server_name = data['guild']['name']
server_members = data['approximate_member_count']
valid += 1
print(colorama.Fore.GREEN + f"[~] Valid ({valid}) - Server: {server_name} - Members: {server_members}" + colorama.Style.RESET_ALL)
with open('output.txt', 'a') as f:
f.write(f"{invite} - Valid - Server: {server_name} - Members: {server_members}\n")
elif r.status_code == 403:
blocked += 1
print(colorama.Fore.YELLOW + f"[~] Holisticz ({blocked}) - Invite: {invite}" + colorama.Style.RESET_ALL)
elif r.status_code == 404:
invalid += 1
print(colorama.Fore.RED + f"[~] Invalid ({invalid}) - Invite: {invite}" + colorama.Style.RESET_ALL)
else:
errors += 1
print(colorama.Fore.RED + f"[~] Errors ({errors}) - Invite: {invite}" + colorama.Style.RESET_ALL)
except:
errors += 1
print(colorama.Fore.RED + f"[~] Errors ({errors}) - Invite: {invite}" + colorama.Style.RESET_ALL)
total += 1
if __name__ == "__main__":
valid = 0
invalid = 0
errors = 0
blocked = 0
total = 0
cpm = 0
with open('invite.txt') as f:
invites = f.read().splitlines()
print(f"[~] Checking {len(invites)} invites...")
start_time = time.time()
for invite in invites:
t = threading.Thread(target=check_invite, args=(invite,))
t.start()
while threading.activeCount() >= 100:
time.sleep(0.1)
while threading.activeCount() > 1:
time.sleep(0.1)
end_time = time.time()
print(f"\n[~] Done checking invites. Valid: {valid}, Invalid: {invalid}, Errors: {errors}, Holisticz: {blocked}")
print(f"[~] CPM: {int(total / (end_time - start_time) * 60)} - Remaining: {len(invites) - total}")
print(f"[~] Valid ({valid})\n[~] Invalid ({invalid})\n[~] Errors ({errors})\n[~] Holisticz ({blocked})\n[~] CPM ({int(total / (end_time - start_time) * 60)})\n[~] Remaining ({len(invites) - total})")
[/HIDE]
This is a bump