0

Usually for a normal file or an image I prefer below using requests module in python-

''' url = "https://www.python.org/static/img/python-logo@2x.png"

downloaded_obj = requests.get(url)

with open("python_logo.png", "wb") as file: file.write(downloaded_obj.content) '''

However, we need to define a file name for saving the data into, my ask is say for example I would like to download a centos8 iso image from below link - http://isoredirect.centos.org/centos/8/isos/x86_64/

I want this ISO image to be saved as is to a location I specify on my machine, how do I approach to achieve this in the best possible way ?

Any advise would be highly appreciated ....

PSD
  • 1
  • 4

0 Answers0