Pro tip: If you're checking multiple sites, `aiohttp` is a beast for async checks. Here's a tiny example:
```python
import aiohttp
import asyncio
async def check(url):
try:
async with aiohttp.ClientSession() as session:
async with session.get(url) as resp:
print(f"{url} is up!" if resp.status == 200 else f"{url} is down.")
except:
print(f"{url} failed.")
asyncio.run(check("https://example.com"))
```
Might be overkill for one site, but scales like a champ.
```python
import aiohttp
import asyncio
async def check(url):
try:
async with aiohttp.ClientSession() as session:
async with session.get(url) as resp:
print(f"{url} is up!" if resp.status == 200 else f"{url} is down.")
except:
print(f"{url} failed.")
asyncio.run(check("https://example.com"))
```
Might be overkill for one site, but scales like a champ.
