Overview

This module focuses on two of the basic building blocks of web applications: The HTTP protocol and the Python requests library. HTTP defines the fundamental rules for communication on the World Wide Web. Python’s requests library provides a means of creating and receiving HTTP messages within Python programs.

Learning Outcomes

After completing this module, students should understand:

  • The basics of HTTP

  • How to install Requests and use it to send messages via HTTP

  • How to work with the Responses coming back from a web server

  • How to use an API

Readings

You may also wish to watch the videos and/or read the slide decks provided on the Py4e website.

[Note: Unlike most of the other modules we have been using in this course, requests is not part of the standard library and may need to be installed. If you receive an error message when importing requests, please refer to the documentation for installation instructions.]

Additional Resources

As a member of the University community you have free access to LinkedIn Learning courses and videos. The following courses are some examples of content that is directly relevant to what we are covering in this module: