Skip to content

Instantly share code, notes, and snippets.

@bahrammp
Created August 6, 2018 15:11
Show Gist options
  • Save bahrammp/20fb8f30cd6fefde777d7d8ceb7be9a3 to your computer and use it in GitHub Desktop.
Save bahrammp/20fb8f30cd6fefde777d7d8ceb7be9a3 to your computer and use it in GitHub Desktop.
from multiprocessing.dummy import Pool as ThreadPool
pool = ThreadPool(2)
restaurant_urls = pool.map(get_restaurants_list, range(1,288))
pool.close()
pool.join()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment