def huban_board(url): site = HuaBanBoard(url) downloader = Downloader(fetcher=site.fetcher, save_dir=site.dir_name) downloader.add_task(site.tasks) download_logger.info("All task add...waiting for execution...") try: downloader.join() except KeyboardInterrupt: download_logger.warn("Exiting...Press crtl+c again to force quit") downloader.stop() exit(0) else: download_logger.info("All task done...Enjoy!")
def huban_user(member_id, username, password, proxy): site = Pixiv(member_id, username, password, proxy=proxy) downloader = Downloader(fetcher=site.fetcher, save_dir=site.dir_name) downloader.add_task(site.tasks) download_logger.info("All task add...waiting for execution...") try: downloader.join() except KeyboardInterrupt: download_logger.warn("Exiting...Press crtl+c again to force quit") downloader.stop() exit(0) else: download_logger.info("All task done...Enjoy!")
def artstation_user(url, proxy): site = ArtStation(url, proxy=proxy) downloader = Downloader(fetcher=site.fetcher, save_dir=site.dir_name) downloader.add_task(site.tasks) download_logger.info("All task add...waiting for execution...") try: downloader.join() except KeyboardInterrupt: download_logger.warn("Exiting...Press crtl+c again to force quit") downloader.stop() exit(0) else: download_logger.info("All task done...Enjoy!")