I made a script in Python that parses through 50,000 English words and finds which of them are unused Reddit Username

savia

New member
The unused Reddit usernames can be found here.

Code:
import requests
from time import sleep

test_user = "john"  # Run at the beginning to make sure all is working fine
link = f"https://old.reddit.com/api/username_available.json?user={test_user}"
# Link idea taken from: https://old.reddit.com/r/redditdev/comments/nklf6o/checking_if_user_exists/

r = requests.get(link, headers = {'User-agent': 'your bot 0.1'})
# user-agent taken from: https://stackoverflow.com/questions/22786068/how-to-avoid-http-error-429-too-many-requests-python
unused = "true" in str(r.content)
print(f"{test_user}: {unused}")

with open('englishwords.txt') as f, open('output.txt', 'a') as q:
    # English words taken from: http://www.mieliestronk.com/wordlist.html
    lines = f.readlines()
    for username in lines:
        username = username.strip()
        link = f"https://old.reddit.com/api/username_available.json?user={username}"
        r = requests.get(link, headers = {'User-agent': 'your bot 0.1'})
        unused = "true" in str(r.content)
        if unused:
            print("BINGO ", end = '')
            q.write(f"{username}\n")
        print(f"{username}: {unused}\n")
        sleep(0.005)  # Delay to avoid spamming reddit's servers
    f.close()
    q.close()
 
And using NLTK, here are the top 50 most common words from the list:

assessors

congregational

consonantal

engendered

palatability

proportionately

accelerometers

broadened

centrifuged

appointees

claimants

clattered

furnishes

pageants

proprietors

choreographers

outweighed

premieres

tribunals

underwriters

accompaniments

bequests

depredations

dynasts

excesses

litigants

militarily

necessitates

ownerships

presumes

pronouncement

provincialism

redeposition

schematically

suggestibility

blockading

campaigners

carousing

conceives

conformational

crooned

defensiveness

denunciations

deportees

disbursements

haltingly

individualists

interdenominational

interrelationships

mineralogical
 

Similar threads

Back
Top