python script to download a file from url Code Example

PHOTO EMBED

Mon Feb 28 2022 14:37:04 GMT+0000 (Coordinated Universal Time)

Saved by @ghefley

import wget
url = "https://www.python.org/static/img/python-logo@2x.png"
wget.download(url, 'c:/users/LikeGeeks/downloads/pythonLogo.png')
content_copyCOPY

https://www.codegrepper.com/code-examples/python/python+script+to+download+a+file+from+url