def save_object_to_s3(self, image_url, key): with urllib.request.urlopen(image_url) as f: self.s3.put_object(Key="버킷 오브젝트 key", Body=f.read(), Bucket="버킷이름")