urllib works too if you don’t wanna install extra stuff. Here’s how:
```python
from urllib.request import urlretrieve
url = "https://example.com/file.zip"
urlretrieve(url, "file.zip")
```
Super short, but less flexible than `requests`. Also, urllib might throw weird errors on redirects or timeouts, so be ready for that.
```python
from urllib.request import urlretrieve
url = "https://example.com/file.zip"
urlretrieve(url, "file.zip")
```
Super short, but less flexible than `requests`. Also, urllib might throw weird errors on redirects or timeouts, so be ready for that.
