8000 Create python check_instagram.py · python/peps@0ba5400 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ba5400

Browse files
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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python check_instagram.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)
0