Skip to content

Instantly share code, notes, and snippets.

@firedotguy
Created October 2, 2025 14:38
Show Gist options
  • Select an option

  • Save firedotguy/1f6742af9df9c860aebab95dcee78827 to your computer and use it in GitHub Desktop.

Select an option

Save firedotguy/1f6742af9df9c860aebab95dcee78827 to your computer and use it in GitHub Desktop.
Checks are you kyrgyz...
from requests import get
def check_connection(url: str):
try:
get(url, timeout=1)
return True
except Exception:
return False
if check_connection('https://us.neotelecom.kg'):
print('βœ… You are πŸ‡°πŸ‡¬ kyrgyz.')
else:
if not check_connection('https://google.com'):
print('❌ Your internet is down.')
else:
print('❌ You are not kyrgyz!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment