├── README.md ├── link.py └── checklink.py /README.md: -------------------------------------------------------------------------------- 1 | # discord-invite-check 2 | Extremely brute force method to find a working discord invite link. 3 | -------------------------------------------------------------------------------- /link.py: -------------------------------------------------------------------------------- 1 | from random import randint 2 | from random import choice 3 | 4 | 5 | def create(): 6 | b = 'http://discord.gg/' 7 | for i in range(7): 8 | a = [randint(48, 57), randint(65, 90), randint(97, 122)] 9 | b += chr(choice(a)) # generating possible invite link 10 | return b 11 | -------------------------------------------------------------------------------- /checklink.py: -------------------------------------------------------------------------------- 1 | from selenium import webdriver 2 | import time 3 | import link 4 | 5 | check = webdriver.Chrome('') 6 | 7 | 8 | def check_invite(b): 9 | check.get(b) 10 | time.sleep(1) # wait for window to completely load 11 | try: 12 | check.find_element_by_css_selector( 13 | '.auth-form.form.deprecated.auth-form-invite.register') # check to see if link is valid 14 | return '{} {}'.format('Link found at', b) 15 | except: 16 | return 0 17 | 18 | 19 | yes = 1 20 | while yes: 21 | invite = link.create() 22 | ok = check_invite(invite) 23 | if ok: 24 | print(ok) 25 | yes = 0 26 | check.close() 27 | --------------------------------------------------------------------------------