Client-side communication with aiohttp
As you have most likely guessed, the end goal of this process is to efficiently collect data from external systems by asynchronously making requests to those systems. We will be revisiting the concept of web scraping, which is the process of automating HTTP requests to various websites and extracting specific information from their HyperText Markup Language (HTML) source code. If you have not read Chapter 9, Concurrent Web Requests, I highly recommend going through it before proceeding with this section, as that chapter covers the fundamental ideas of web scraping and other relevant, important concepts.
In this section, you will also be introduced to another module that supports asynchronous programming options: aiohttp
(which stands for asynchronous input/output (I/O) HTTP). This module provides high-level functionalities that streamline HTTP communication procedures, and it also works seamlessly with the asyncio
module, to facilitate asynchronous...