def get_image_urls(self, keyWord, header): imgScrapper = ImageScrapper() url = imgScrapper.createURL(keyWord) rawHtml = imgScrapper.get_RawHtml(url, header) imageURLList = imgScrapper.getimageUrlList(rawHtml) return imageURLList
def downloadImages(self, keyWord, header): imgScrapper = ImageScrapper() url = imgScrapper.createURL(keyWord) rawHtml = imgScrapper.get_RawHtml(url, header) imageURLList = imgScrapper.getimageUrlList(rawHtml) masterListOfImages = imgScrapper.downloadImagesFromURL( imageURLList, keyWord, header) return masterListOfImages