Question: Python 1. 2. a) Suppose you are working on a program that requires an API call to some website called http://ww.booisawesome.com. We wish to access

Python

1.

Python 1. 2. a) Suppose you are working on a program that

2.

requires an API call to some website called http://ww.booisawesome.com. We wish to

access the customers API webpage of the website-the API takes the following

a) Suppose you are working on a program that requires an API call to some website called http://ww.booisawesome.com. We wish to access the customers API webpage of the website-the API takes the following two parameters: date 12-5-16 search dog Write the encoded URL that we would use in order to send a HTTPS request to the web API for the BoolsAwesome website in the box below. b) When programming a function to generate the encoded URL as you wrote in part (a), why do we use the function urlib.parse.urlencode instead of just concatenating a string for the URL ourselves? (c) After getting the result of the HTTPS request from part (a), we parse the JSON response. Why do we use the json library to parse the JSON response? In other words, how did the library make it easier for a program to process the information in the JSON response? (d) What is the purpose of using protocols in writing programs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!