![]() ![]() Lines 85-86: we create our image_results variable (85) to hold all of our EXIF data results and the image_hashes variable (86) to keep track of all of the unique hashes for the images we download.Line 83: we define our download_images function that takes in our big list of image URLs and the original URL we are interested in.Lines 72-74: if we don’t already have the image URL (72) we print out a message (73) and then add the image URL to our list of all images found (74).Īlright! Now that we have extracted all of the image URLs that we can, we need to download them and process them for EXIF data.Lines 63-70: we walk over the list of IMG tags found (64) and we build URLs (67-70) to the images that we can use later to retrieve the images themselves.This will produce a list of all IMG tags discovered in the HTML. The parsing is handled by using the findAll function (60) and passing in the img tag. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |