Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, this is my lab, and it is pretty long. I separate the lab into three chegg questions(they are connected). This is the first part.

Hi, this is my lab, and it is pretty long. I separate the lab into three chegg questions(they are connected). This is the first part. Please help me with them! The first three pictures are just explanations and instructions, and the last two pictures are the questions. Please read them carefully and follow the instructions.

image text in transcribedimage text in transcribed

image text in transcribedimage text in transcribed

image text in transcribedThe lab is continuing(the rest are in the following posts)...please help me! Thank you very much!

Data and the Game of Thrones Game of Thrones, the HBO series, and A Song of Ice and Fire, the series of books on which the popular TV shows are based, have an incredible number of characters, families, "houses," events, and plot lines. The works have so many details that they have inspired a surprising number of data visualizations (see FlowingData and A Song of Ice and Data or google image searchfor examples). They have also inspired a database with a publicly accessible application program interface (AP), An API Of Ice And Fire APls provide programmers with an interface for accessing data or services. Web APls are often used in data science to collect data from different services and sources. In this case, the API of Ice and Fire allows us to receive JSON formatted data via web protocols using specially formatted URLs. For example, try opening this link in a web browser: http://anapioficeandfire.com/api/characters/583 You should see a JSON object (which is very similar to a python dictionary) with all sorts of information about a central character in the series. Using the API Books You can request data for a particular book (here we are requesting information for the book with ID 1): http://www.anapioficeandfire. com/api/books/1 You can request to get a list of all the book data: http://www.anapioficeandfire.com/api/books Or you can filter the list of books by name or date. For example: http://ww.anapioficeandfire.com/api/books?name-A Dance with Dragons Characters Similarly you can request data for a particular character (here we are requesting information for the character with id 823) http://www.anapioficeandfire.com/api/characters/823 Data and the Game of Thrones Game of Thrones, the HBO series, and A Song of Ice and Fire, the series of books on which the popular TV shows are based, have an incredible number of characters, families, "houses," events, and plot lines. The works have so many details that they have inspired a surprising number of data visualizations (see FlowingData and A Song of Ice and Data or google image searchfor examples). They have also inspired a database with a publicly accessible application program interface (AP), An API Of Ice And Fire APls provide programmers with an interface for accessing data or services. Web APls are often used in data science to collect data from different services and sources. In this case, the API of Ice and Fire allows us to receive JSON formatted data via web protocols using specially formatted URLs. For example, try opening this link in a web browser: http://anapioficeandfire.com/api/characters/583 You should see a JSON object (which is very similar to a python dictionary) with all sorts of information about a central character in the series. Using the API Books You can request data for a particular book (here we are requesting information for the book with ID 1): http://www.anapioficeandfire. com/api/books/1 You can request to get a list of all the book data: http://www.anapioficeandfire.com/api/books Or you can filter the list of books by name or date. For example: http://ww.anapioficeandfire.com/api/books?name-A Dance with Dragons Characters Similarly you can request data for a particular character (here we are requesting information for the character with id 823) http://www.anapioficeandfire.com/api/characters/823

Step by Step Solution

There are 3 Steps involved in it

Step: 1

To complete this lab we need to implement two functions using the requests module to interact with the API of Ice and Fire Lets focus on creating the ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

International Baccalaureate Computer Science HL And SL Option A Databases Part I Basic Concepts

Authors: H Sarah Shakibi PhD

1st Edition

1542457084, 978-1542457088

More Books

Students also viewed these Databases questions

Question

What major criteria must be met before a company is consolidated?

Answered: 1 week ago