8000 <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

wants to merge 1 commit into from

Conversation

zainzain83828
Copy link
@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
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
0