Skip to content

Commit a56cc27

Browse files
committed
[bin/available] Add script to check available short github usernames
1 parent 432c5f9 commit a56cc27

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

bin/available

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env python3
2+
3+
import sys, requests, time, string
4+
5+
chars = string.digits + string.ascii_lowercase
6+
7+
def check(user):
8+
status = requests.get(f"https://github.com/{user}").status_code
9+
print(status, user)
10+
time.sleep(1)
11+
12+
for a in chars:
13+
check(a)
14+
15+
for a in chars:
16+
for b in chars:
17+
check(a + b)
18+
19+
for a in chars:
20+
for b in chars:
21+
for c in chars:
22+
check(a + b + c)

0 commit comments

Comments
 (0)