Kanye 명언 API 칸예 사이트에서 무료로 제공하는 API를 활용해보자. https://kanye.rest/ 여러 가지 명언을 제공한다. 우리는 이것을 requests하고, 칸예 사이트에서 response하면 이를 저장하여 사용한다. - URL 주소 - 요청하기 requests.get(url=) - 예외잡기 raise_for_status() - 제이슨 파일로 변환하기 json() - 원하는 속성 가져오기 [ ] import requests response= requests.get(url="https://api.kanye.rest") response.raise_for_status() data = response.json() quote = data['quote']