For those of you looking to gain some experience working with requests, here are all the materials from a workshop I've created and delivered multiple times to good reviews. Feel free to use, share and adapt these materials as you see fit.
- Make sure you have a working Python 3 installation. Get it from here if you haven't got that already.
- Download and unzip or clone this project
- From the project root, run
pip install -r requirements.txt
to install the necessary dependencies
The exercises use the Zippopotam.us API, so make sure that it's up and that you are allowed to access it from your machine.
The same goes for the SpaceX GraphQL API that is used in the sixth and final series of exercises.
The .pptx/.pdf/.odp file in the root folder contains all slides from the workshop. Again, feel free to use, share and adapt them to fit your own requirements.
Feel free to file an issue here or send me an email at bas@ontestautomation.com.
Sure, I'd love to. Again, send me an email and I'll be happy to discuss options. In house or at your conference, I'm sure we can work something out.