def download(self):
import tarfile<EOL>if self._check_integrity():<EOL><INDENT>print('<STR_LIT>')<EOL>return<EOL><DEDENT>download_url(self.url, self.root, self.filename, self.md5_checksum)<EOL>with tarfile.open(os.path.join(self.root, self.filename), '<STR_LIT>') as tar:<EOL><INDENT>tar.extractall(path=self.root)<EOL><DEDENT>with open(os.path.join(self.root, '<STR_LIT>', '<STR_LIT>')) as fh:<EOL><INDENT>for line in fh:<EOL><INDENT>url = line.rstrip()<EOL>try:<EOL><INDENT>download_url(url, os.path.join(self.root, '<STR_LIT>'))<EOL><DEDENT>except OSError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT>
Download and extract the tarball, and download each individual photo.