---
type: link
tags: [link]
created: 2025-11-06T02:51:46.19+00:00
updated: 2026-04-06T10:59:45.224445+00:00
---# 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:** link
