def batch_downloader(file): """ Takes a text file and scrapes the image URLs """ images = ImagesDownload(fileName = file) dirName, imageBookPath = images.filePath() imageBookData = images.readFile(imageBookPath) images.downloadImages(dirName, imageBookData)
def batch_downloader(file): """ Takes a text file and scrapes the image URLs """ images = ImagesDownload(fileName=file) dirName, imageBookPath = images.filePath() imageBookData = images.readFile(imageBookPath) images.downloadImages(dirName, imageBookData)