@@ -4,7 +4,7 @@ In this assignment you are going to build a Python program to access the
4
4
[ Apple iTunes Search Service] ( https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/iTuneSearchAPI/Searching.html ) .
5
5
This service can be used to search information about musicians, albums, songs and so on.
6
6
7
- Using the following URL a search for the term _ ramones_ and for the entity type
7
+ Using the following URL, a search for the term _ ramones_ and for the entity type
8
8
_ album_ is performed:
9
9
[ https://itunes.apple.com/search?term=ramones&entity=album ] ( https://itunes.apple.com/search?term=ramones&entity=album )
10
10
@@ -33,16 +33,16 @@ example result of the service:
33
33
]
34
34
}
35
35
36
- The response in the example above consist of one result (` resultCount ` is 1). This result is the album
37
- "Ramones" (element ` collectionName ` ) by the artist "Ramones" (element ` artistName ` )
36
+ The response in the example above consists of one result (` resultCount ` is 1). This result is the album
37
+ "Ramones" (element ` collectionName ` ) by the artist "Ramones" (element ` artistName ` ).
38
38
The response is in [ JSON] ( https://en.wikipedia.org/wiki/JSON ) format.
39
39
40
40
The [ Requests] ( https://docs.python-requests.org/en/latest/ )
41
41
library can be used to invoke the Apple iTunes Search Service.
42
- In order to perform a search a [ GET request] ( https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods )
42
+ In order to perform a search, a [ GET request] ( https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods )
43
43
needs to be performed. This is done using the ` get() ` function of the Requests library.
44
- After that the method ` json() ` of the Requests
45
- library can be used to mapped the response from [ JSON] ( https://en.wikipedia.org/wiki/JSON )
44
+ After that, the method ` json() ` of the Requests
45
+ library can be used to map the response from [ JSON] ( https://en.wikipedia.org/wiki/JSON )
46
46
to the Python 🐍 data types ` dict ` and ` list ` .
47
47
48
48
---
@@ -64,7 +64,7 @@ Below is an example execution of the program. Note that the output is abbreviate
64
64
# Hints
65
65
66
66
1 . In Code Ocean it is not possible to access the iTunes search API. Therefore you should
67
- write and test you program on your own computer e.g. in a Jupyter notebook.
68
- 1 . Out tests in Code Ocean uses a [ mock object] ( https://en.wikipedia.org/wiki/Mock_object ) to check
67
+ write and test your program on your own computer e.g. in a Jupyter notebook.
68
+ 1 . Our tests in Code Ocean use a [ mock object] ( https://en.wikipedia.org/wiki/Mock_object ) to check
69
69
your program. Therefore only the ` get() ` function and the ` json() ` method are supported. All other
70
- functions and methods of the Requests library will ** not** work.
70
+ functions and methods of the Requests library will ** not** work.
0 commit comments