-
-
Save bahrammp/20fb8f30cd6fefde777d7d8ceb7be9a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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