December 2018
Beginner to intermediate
796 pages
19h 54m
English
This example has been fun to code. We are going to download random pictures from a website. I'll show you three versions: a serial one, a multiprocessing one, and finally a solution coded using asyncio. In these examples, we are going to use a website called http://lorempixel.com, which provides you with an API that you can call to get random images. If you find that the website is down or slow, you can use an excellent alternative to it: https://lorempizza.com/.
It may be something of a cliché for a book written by an Italian, but the pictures are gorgeous. You can search for another alternative on the web, if you want to have some fun. Whatever website you choose, please be sensible and try not ...
Read now
Unlock full access