10000 <spam> by zainzain83828 · Pull Request #4403 · python/peps · GitHub
[go: up one dir, main page]

Skip to content

<spam> #4403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

<spam> #4403

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
  • Loading branch information
zainzain83828 authored May 4, 2025
commit 0ba54008e0714c0639f8c5e12ce1c232d3faa4bd
1 change: 1 addition & 0 deletions python check_instagram.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0