다양한 ‘보도자료’ 페이지를 살펴보면 대부분 여러 페이지로 구성되어 한 번에 5개 내지는
10개의 보도자료밖에 보지 못할 것이다. 즉, 우리는 각 의원별로 최근 보도자료 몇 개밖에
검색할 수 없었다는 의미다. 더 확실한 방법은 페이지를 넘기며 개별 보도자료의 전문을 받
아오는 방식이었을 것이다.
9.4
API 사용하기
많은 웹사이트는
API
(
application
programming
interface
)를 통해 사이트의 데
이터를 구조화된 형태로 제공해 주고 있다.
API
를 사용하면 직접 스크래핑을 할
필요가 없어진다!
9.4.1
JSON과 XML
텍스트를 교환하기 위해 사용되는 통신 규약인
HTTP
에 따라
API
를 통해 요청
하는 데이터는
직렬화된 문자열 형태로 유지되어 있어야 한다. 대부분의 경우,
직렬화 구조로
JSON
(
JavaScript
Object
Notation
)을 사용한다.
JSON
은 파이썬
의 딕셔너리와 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.