Created
October 2, 2025 14:38
-
-
Save firedotguy/1f6742af9df9c860aebab95dcee78827 to your computer and use it in GitHub Desktop.
Checks are you kyrgyz...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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