I'm testing an API from Rapidapi.com using Python 3.8 and Requests module. This is the code:
import requests
url = "https://netflix-unofficial.p.rapidapi.com/api/genres"
headers = {
'x-rapidapi-host': "netflix-unofficial.p.rapidapi.com",
'x-rapidapi-key': //here goes my private key
}
response = requests.request("GET", url, headers=headers)
data = response.text
print(data)
The output I obtain is like this:
{"data":["Action & Adventure","Anime Features","Children & Family Movies","Classic Movies","Cult Movies","Documentaries","Dramas","Faith & Spirituality","Horror Movies","Independent Movies","International Movies","LGBTQ Movies","Movies","Music & Musicals","Romantic Movies","Sci-Fi & Fantasy","Sports Movies","Stand-Up Comedy","Thrillers"]}
But I want have access to every single genre listed and show it like this instead:
- Genre 1
- Genre 2
...
- Genre n