Generally, web-based interaction or communication between the web page and the user or reader is achieved as follows:
- The user or reader can access the web page to read or navigate through information that's presented to them
- The user or reader can also submit certain information to the web page using the HTML form, such as by searching, logging in, user registration, password recovery, and so on
In this section, we will be using the requests Python library to implement common HTTP methods (GET and POST) that execute the HTTP-based communication scenario we listed previously.