Python Requests: HTTP Requests with Python
Python 3.7
| Beginner
- 16 videos | 1h 42m 9s
- Includes Assessment
- Earns a Badge
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 courseInstall the python requests package and set up a workspaceMake a get request and explore the response object returned, which includes a status code and headersParse a response body containing json-formatted dataInvoke a get request that includes parametersUse the requests package to construct a post request that includes a set of key-value pairs to be submitted to a serverSubmit data to pastebin.com using their apis and with a post requestRetrieve 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 themSet the headers in an http request and parse the headers in a response objectDefine the encoding format for the contents in an http response and download and handle binary content such as imagesIdentify the format of an http response and parse the data accordinglyHandle successful and unsuccessful http requests according to the status code of the responseRecognize when an http request has triggered a redirect, explore the redirect history, and configure the read and connect timeout values for a requestCatch errors that are thrown by http requests by using the exceptions module in the requests packageCompare the get and head requests, summarize the put and delete requests, and view the redirect history following a get request
IN THIS COURSE
-
2m 19s
-
6m 52sDuring this video, you will learn how to install the Python Requests package and set up a workspace. FREE ACCESS
-
5m 31sIn this video, you will learn how to make a GET request and explore the response object returned. This object includes a status code and headers. FREE ACCESS
-
6m 44sTo parse a response body containing JSON-formatted data, use the JSON.parse() method. FREE ACCESS
-
5m 44sTo make a GET request that includes parameters, you will need to add them to the URL of the request. FREE ACCESS
-
9m 47sIn this video, learn how to use the Requests package to construct a POST request that includes a set of key-value pairs to be submitted to a server. FREE ACCESS
-
5m 2sLearn how to submit data to pastebin.com using their APIs with a POST request. FREE ACCESS
-
4m 25sLearn how to retrieve metadata for a resource by making a HEAD request. FREE ACCESS
-
7m 17sIn this video, you will make PUT, OPTIONS, and DELETE requests and recognize the specific use case for each of them. FREE ACCESS
-
7m 27sLearn how to set the headers in an HTTP Request and parse the headers in a Response object. FREE ACCESS
-
8m 20sIn this video, you will learn how to define the encoding format for the contents in an HTTP Response and how to download and handle binary content such as images. FREE ACCESS
-
9m 13sFind out how to identify the format of an HTTP Response and parse the data accordingly. FREE ACCESS
-
5m 28sIn this video, you will learn how to handle successful and unsuccessful HTTP requests according to the status code of the response. FREE ACCESS
-
9m 50sUpon completion of this video, you will be able to recognize when an HTTP request has triggered a redirect, explore the redirect history, and configure the read and connect timeout values for a request. FREE ACCESS
-
3m 30sLearn how to catch errors that are thrown by HTTP requests by using the exceptions module in the Requests package. FREE ACCESS
-
4m 39sLearn how to compare the GET and HEAD requests, summarize the PUT and DELETE requests, and view the redirect history following a GET request. FREE ACCESS
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.