June 2023
Intermediate to advanced
586 pages
12h 35m
English
This chapter introduces the urllib and requests modules for making requests and retrieving web resources. The third-party requests module is a very popular alternative to the urllib module; it has an elegant interface and a powerful feature set, and it is a great tool for streamlining HTTP workflows. Also, we cover HTTP authentication mechanisms and how we can manage them with the requests module. Finally, we cover how to implement OAuth clients and JWT for token generation in web applications with the requests-oauthlib and jwt modules.
This chapter will provide us with the foundation to become familiar with different alternatives within Python when we need to use a module that provides different functionality ...