Commit 0ba5400
authored
Create python check_instagram.py
import requests
def check_username(username):
url = f"https://www.instagram.com/{username}/"
response = requests.get(url)
if response.status_code == 404:
return True
return False
# توليد يوزرات عشوائية (مثال)
import random
import string
def generate_usernames(length=4, count=50):
usernames = set()
while len(usernames) < count:
username = ''.join(random.choices(string.ascii_lowercase + string.digits, k=length))
usernames.add(username)
return list(usernames)
# تحقق من التوفر
usernames = generate_usernames()
available = []
for name in usernames:
try:
if check_username(name):
print(f"[✓] Available: {name}")
available.append(name)
else:
print(f"[X] Taken: {name}")
except Exception as e:
print(f"Error checking {name}: {e}")
# عرض المتاحين
print("\nAvailable usernames:")
print(available)1 parent a9f1b15 commit 0ba5400
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments