'How to download multiple images from a URL

I am trying to get the below code working. I think this is close, but I keep getting an error that reads 'unexpected EOF while parsing' on the last line.

import requests
import subprocess
import os
import urllib.request
from bs4 import BeautifulSoup

os.chdir("C:/Users/Excel/Downloads/")

request = requests.get("http://ottofrello.dk/malerierstor.htm")
content = request.content
soup = BeautifulSoup(content, "html.parser")
element = soup.find_all("img")
for img in element:
    urllib.request.urlretrieve("http://ottofrello.dk/" + img.get('src') + "," + img.get('src') + ")"

I am using Python 3.6.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source