Last active
January 19, 2022 21:46
-
-
Save iNawaR1/a18fc687fd1a648e0b30a52ab7acf99a to your computer and use it in GitHub Desktop.
The fastest github user checker. you need a users list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
head = { | |
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', | |
'accept-encoding': 'gzip, deflate, br', | |
'accept-language': 'en-US,en;q=0.9', | |
'cookie': '_device_id=d19a3adf483dc8e7f363b2ba85577c74; _octo=GH1.1.336579755.1638284782; has_recent_activity=1; user_session=GBE2KZz0JLLmNhOYPgPHDaNdl2l_8hOuyvWFhPt84QbL24sK; __Host-user_session_same_site=GBE2KZz0JLLmNhOYPgPHDaNdl2l_8hOuyvWFhPt84QbL24sK; logged_in=yes; dotcom_user=nawar222; color_mode=%7B%22color_mode%22%3A%22auto%22%2C%22light_theme%22%3A%7B%22name%22%3A%22light%22%2C%22color_mode%22%3A%22light%22%7D%2C%22dark_theme%22%3A%7B%22name%22%3A%22dark%22%2C%22color_mode%22%3A%22dark%22%7D%7D; tz=Europe%2FBerlin; _gh_sess=FsONnZEWPaJ5U%2B0M4xCIN%2FuE73YFE92v2lq8UY%2B%2BFw0X1LDKGQX2zPge9cXfO%2FNUD7RSb9MtLRMrwW7dblrDv0NcC7P%2BTzZWgUOgqFZ0PNYxFOArrXU5my%2BWLGrtkKwTzAbJtHXJ4Cdl7bfyI6wFrbsgmD%2FkNlogARyHkyXjU1I%3D--sIXeCKS9ycMvLx0h--SMmj5fsKRk3WLc0quoy16Q%3D%3D', | |
'sec-ch-ua': '" Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"', | |
'sec-ch-ua-mobile': '?0', | |
'sec-ch-ua-platform': '"Windows"', | |
'sec-fetch-dest': 'document', | |
'sec-fetch-mode': 'navigate', | |
'sec-fetch-site': 'none', | |
'sec-fetch-user': '?1', | |
'upgrade-insecure-requests': '1', | |
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.62', | |
} | |
iNaWaR = 'user.txt' | |
file = open(iNaWaR, 'r') | |
while True: | |
github = file.readline().split('\n')[0] | |
if github == '': | |
break | |
url = f'https://github.com/{github}' | |
rq = requests.get(url, headers=head) | |
if rq.status_code == 404: | |
print(f'Available -->> {github}') | |
with open('Available-USERS.txt', 'a') as x: | |
tl = 'By iNaWaR --> ' | |
x.write(tl + github + '\n') | |
elif rq.status_code == 200: | |
print(f'Taken -->> {github}') | |
else: | |
print(f'user can not be used in github!! {github}') | |
# by iNaWaR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment