September 2018
Intermediate to advanced
426 pages
10h 46m
English
In this section, we are going to build a script to connect to a Website, download all the images on the site, and then check them for Exif metadata.
For this task, we are using the urllib module from python3 that provides parse and request packages:
https://docs.python.org/3.0/library/urllib.parse.html
https://docs.python.org/3.0/library/urllib.request.html
You can find the following code in the exif_images_web_page.py file in the exiftags folder.
This script contains the methods for find images in a website with BeautifulSoup and the lxml parser, and download images in an images folder:
def findImages(url): print('[+] Finding images on ' + url) urlContent = requests.get(url).text soup = BeautifulSoup(urlContent,'lxml') ...