---
type: link
tags: [public]
created: 2025-11-06T02:51:46.190Z
updated: 2025-11-15T20:19:56.094Z
---# 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
