Python Requests: HTTP Requests with Python

Python 3.7    |    Beginner
  • 16 Videos | 1h 48m 5s
  • Includes Assessment
  • Earns a Badge
Likes 159 Likes 159
Learners can explore how to use the Python Request package which has simplified the task of constructing HTTP requests in this 16-video lab course, which explores different types of HTTP requests, and examines several ways to handle responses to those requests. Begin by learning how to use the Python request package to make a GET request for data from a server. Then you will observe how to construct a POST request to submit data to a host, and how to send it to a URL. Continue by learning how to use a HEAD request to check the resource information before downloading it by using GET, and how to examine request and response headers. Next, learners will examine a PUT request which has the same effect whether one makes the request once or multiple times, and which is used to overwrite an existing resource. You will learn to use DELETE requests. Finally, you will learn to address responses to requests in both JSON formatted or images.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    install the Python Requests package and set up a workspace
    make a GET request and explore the response object returned, which includes a status code and headers
    parse a response body containing JSON-formatted data
    invoke a GET request that includes parameters
    use the Requests package to construct a POST request that includes a set of key-value pairs to be submitted to a server
    submit data to pastebin.com using their APIs and with a POST request
    retrieve metadata for a resource by means of a HEAD request
  • invoke PUT, OPTIONS, and DELETE requests and recognize the specific use case for each of them
    set the headers in an HTTP Request and parse the headers in a Response object
    define the encoding format for the contents in an HTTP Response and download and handle binary content such as images
    identify the format of an HTTP Response and parse the data accordingly
    handle successful and unsuccessful HTTP requests according to the status code of the response
    recognize when an HTTP request has triggered a redirect, explore the redirect history, and configure the read and connect timeout values for a request
    catch errors that are thrown by HTTP requests by using the exceptions module in the Requests package
    compare the GET and HEAD requests, summarize the PUT and DELETE requests, and view the redirect history following a GET request

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 19s
    UP NEXT
  • Playable
    2. 
    Installing the Requests Package
    6m 52s
  • Locked
    3. 
    A Basic GET Request
    5m 33s
  • Locked
    4. 
    Exploring an HTTP Response Containing JSON Data
    5m 38s
  • Locked
    5. 
    Including Parameters in a GET Request
    5m 44s
  • Locked
    6. 
    A Basic POST Request
    9m 47s
  • Locked
    7. 
    A POST Request with Multiple Parameters
    5m 2s
  • Locked
    8. 
    The HEAD Request
    4m 25s
  • Locked
    9. 
    The PUT, OPTIONS, and DELETE Requests
    7m 17s
  • Locked
    10. 
    Working with Request and Response Headers
    7m 27s
  • Locked
    11. 
    Content Encoding and Binary Response Data
    8m 20s
  • Locked
    12. 
    Handling Responses in Different Formats
    9m 13s
  • Locked
    13. 
    HTTP Status Codes
    5m 28s
  • Locked
    14. 
    Redirects and Timeouts
    9m 50s
  • Locked
    15. 
    Exceptions
    3m 30s
  • Locked
    16. 
    Exercise: HTTP Requests with Python
    4m 39s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE