from google_images_hunter import Searcher
from image_downloader import ImageDownloader


if __name__ == "__main__":
    # Step 1, create a Searcher object.
    searcher = Searcher()
    # Step 2, set and trigger the scrap() function. Concept is a required parameter.
    # Max_images and loadmore have default values. download_url_lists defaults as False.
    mylist = searcher.scrap(concept='your_topic', download_url_lists=True, max_images=250, loadmore=20)
    # Step 3, use the URl list generated by scrap() to download the images on a given path. Defaults to current path.
    ImageDownloader(mylist, path='your_path')

