For a modern approach, try `httpx`—it’s like `requests` but async-ready.
```python
import httpx
url = "https://example.com/file.zip"
with httpx.Client() as client:
r = client.get(url)
with open("file.zip", "wb") as f:
f.write(r.content)
```
Bonus: handles HTTP/2 and is super fast. Downside? Another dep to install.
```python
import httpx
url = "https://example.com/file.zip"
with httpx.Client() as client:
r = client.get(url)
with open("file.zip", "wb") as f:
f.write(r.content)
```
Bonus: handles HTTP/2 and is super fast. Downside? Another dep to install.
