---
type: link
tags: [public]
created: 2025-10-27T09:17:57.483Z
---# python | Download a file from the web.

**URL:** [https://docs.python.org/3/library/urllib.request.html](https://docs.python.org/3/library/urllib.request.html)

python | Download a file from the web. python -c "import urllib.request; urllib.request.urlretrieve('https://example.com/file.txt', 'file.txt')"


---
**Keywords:** public
