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

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

March 25th 2020
12m
by @greyson 6,725 reads
tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

Greyson Nevins-Archer


Receive Stories from @greyson

react to story with heart
Greyson Nevins-Archer HackerNoon profile picture
by Greyson Nevins-Archer @greyson.Developer at FINRA https://github.com/greysonevins Javascript, React, Python, Flask
Read My Stories

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa