import requests def check_phishing(url): # Example API endpoint (replace with a real phishing database API) api_url = f"https://phishing-database.example.com/check?url={url}" response = requests.get(api_url) if response.status_code == 200: data = response.json() return data['is_phishing'] return None url = input("Enter the URL to check: ") result = check_phishing(url) if result is None: print("Error checking the URL.") elif result: print("Warning: This URL is potentially a phishing site!") else: print("This URL appears to be safe.")