import requests

def check(url):
    try:
        response = requests.get(url + "/lander")

        if response.status_code == 200:
            if response.history:
                for resp in response.history:
                    if "afternic.com" in response.url:
                        with open("found.txt", "a") as file:
                            file.write(url + "\n")
                        break

    except requests.exceptions.RequestException as e:
        print(f"Hata oluştu: {e}")

with open("urls.txt", "r") as file:
    for url in file:
        cleaned_url = url.strip()
        print(f"Kontrol ediliyor: {cleaned_url}")
        check(cleaned_url)
örnek kullanım:
python check.py