|
|
@ -63,9 +63,10 @@ def download_media(html, images, wiki): |
|
|
|
|
|
|
|
# we select the first search result |
|
|
|
# (assuming that this is the image we are looking for) |
|
|
|
image = data['query']['allimages'][:1] # pick last item!!! |
|
|
|
image = data['query']['allimages'][0] |
|
|
|
|
|
|
|
# then we download the image |
|
|
|
print(image) |
|
|
|
image_url = image['url'] |
|
|
|
image_filename = image['name'] |
|
|
|
print('Downloading:', image_filename) |
|
|
|