If you’re into one-liners, you can use `wget` via Python’s `os` module for python curl url to file. It’s not pure Python, but it’s quick and dirty:
```python
import os
url = "https://example.com"
os.system(f"wget -O output.txt {url}")
```
Not the most elegant solution, but it works in a pinch.
```python
import os
url = "https://example.com"
os.system(f"wget -O output.txt {url}")
```
Not the most elegant solution, but it works in a pinch.
