[![enter image description here][1]][1]I want to download the images from a Wikipedia page so I write this program, the txt file it's saving with all of the links but I don't know how to continue the program to download files. Can someone help me?
from urllib.request import urlopen
from bs4 import BeautifulSoup
from requests import get
import urllib.request
import wikipedia
import requests
import re
title = input("Title: ")
link = (wikipedia.page(title).url)
html = urlopen(link)
bs = BeautifulSoup(html, 'html.parser')
images = bs.find_all('img', {'src':re.compile('.jpg')})
f= open("cache.txt","w+")
for image in images:
url = ('https:' + image['src']+'\n')
f.write(url)