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 setUp(self):
     self.images = ImagesDownload(fileName=None)
     self.mock_data = ['a.png', 'b.jpg', 'c.jpg']