def work1(): while True: url = queue1.get() Spider.crawl_video_urls(threading.current_thread().name, url) queue1.task_done()