Multiprocessing for heavy API requests with Python and the PokéAPI

Written by greyson | Published 2020/03/25
Tech Story Tags: python3 | multiprocessing | api | tools | pandas | python-tips | python-tutorials | programming

TLDR Multiprocessing for heavy API requests with Python and the PokéAPI can be made easier. The Pokémon API is 100 calls per 60 seconds max. There are 964 pokémon the API returns. I wanted to share some of my learnings through an example project of scrapping the Pokémon API. Below I wrote a bit of code that pulls all of the available pokedmon while minding the API's 100 call per 60 second limits. You'll see that the iteration is fairly slow.via the TL;DR App

no story

Written by greyson | Developer at FINRA https://github.com/greysonevins Javascript, React, Python, Flask
Published by HackerNoon on 2020/03/25