Skip to content

<spam>#4403

Closed
zainzain83828 wants to merge 1 commit intopython:mainfrom
zainzain83828:patch-1
Closed

<spam>#4403
zainzain83828 wants to merge 1 commit intopython:mainfrom
zainzain83828:patch-1

Conversation

@zainzain83828
Copy link
Copy Markdown

@zainzain83828 zainzain83828 commented May 4, 2025

spam

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)
@zainzain83828 zainzain83828 requested a review from a team as a code owner May 4, 2025 05:27
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot bot commented May 4, 2025

The following commit authors need to sign the Contributor License Agreement:

CLA signed

@AA-Turner AA-Turner changed the title Create python check_instagram.py <spam> May 4, 2025
@hugovk hugovk added the invalid Invalid issue or PR label May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid Invalid issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants