import os import random from time import sleep def create_dir(dir_path): if not os.path.exists(dir_path): os.makedirs(dir_path) def skip_captcha(): print('Skipping the captcha...') def rand_sleep(): sleep(0.5 + random.random() * 0.5)