This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Find the main image on a Wikipedia page and download it. | |
Using a list of Wikipedia URLs, download the main image from each page in the list. | |
Name the downloaded file to match the page URL. | |
""" | |
import requests, os | |
# set the folder name where images will be stored | |
my_folder = 'wiki_images' |