how to save an image from a url and save it in a specific folder

Using the requests pkg:

import requests
image_url = ""
path = "/Users/naghmeh/Documents/medical/jadid/train/asd.jpg"
request = requests.get(image_url, stream=True)
with open(path, "wb+") as file:
  for c in request:

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top