Multiprocessing for heavy API requests with Python and the PokéAPIby@greyson
7,446 reads
7,446 reads

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

by Greyson Nevins-Archer12mMarch 25th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.
featured image - Multiprocessing for heavy API requests with Python and the PokéAPI
Greyson Nevins-Archer HackerNoon profile picture
Greyson Nevins-Archer

Greyson Nevins-Archer

@greyson

Developer at FINRA https://github.com/greysonevins Javascript, React, Python, Flask

About @greyson
LEARN MORE ABOUT @GREYSON'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Greyson Nevins-Archer HackerNoon profile picture
Greyson Nevins-Archer@greyson
Developer at FINRA https://github.com/greysonevins Javascript, React, Python, Flask

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite