import os
import requests


def save_photos(urls, prefix, all_folder):
    for url_number, url in enumerate(urls):
        response = requests.get(url, verify=False)
        response.raise_for_status()
        extension = os.path.splitext(url)[-1]
        with open(f"{all_folder}/{prefix}{url_number}{extension}", 'wb') as file:
            file.write(response.content)

8207242c19b04cf88c431a02b67fb4e60ab3e477
<mask token>

<mask token>


def save_photos(urls, prefix, all_folder):
    for url_number, url in enumerate(urls):
        response = requests.get(url, verify=False)
        response.raise_for_status()
        extension = os.path.splitext(url)[-1]
        with open(f'{all_folder}/{prefix}{url_number}{extension}', 'wb'
            ) as file:
            file.write(response.content)

import os
import requests


def save_photos(urls, prefix, all_folder):
    for url_number, url in enumerate(urls):
        response = requests.get(url, verify=False)
        response.raise_for_status()
        extension = os.path.splitext(url)[-1]
        with open(f'{all_folder}/{prefix}{url_number}{extension}', 'wb'
            ) as file:
            file.write(response.content)

import os
import requests


def save_photos(urls, prefix, all_folder):
    for url_number, url in enumerate(urls):
        response = requests.get(url, verify=False)
        response.raise_for_status()
        extension = os.path.splitext(url)[-1]
        with open(f"{all_folder}/{prefix}{url_number}{extension}", 'wb') as file:
            file.write(response.content)
