示例#1
0
    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
示例#2
0
    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