[자바스크립트] Scraping & Crawling

강지훈·2022년 12월 20일
0

자바스크립트

목록 보기
6/12

Scraping

다른 사이트 정보를 한 번만 가져옴
=> 포스트맨, axios로 받아오기

The Open Graph protocol
페이스북에서 시작해서 유명해진 것으로,
아래의 정보들을 html에 head 안에 meta 태그로 넣어줍니다.

og:title - The title of your object as it should appear within the graph, e.g., "The Rock".
og:type - The type of your object, e.g., "video.movie". Depending on the type you specify, other properties may also be required.
og:image - An image URL which should represent your object within the graph.
og:url - The canonical URL of your object that will be used as its permanent ID in the graph, e.g., "https://www.imdb.com/title/tt0117500/".

Crawling

크롤링은 위의 스크래핑을 지속적으로 여러번하는 것으로
"웹을 돌아다니며 정보수집을 한다" 라는 말로도 쓰임.

profile
우당탕탕 개발자

0개의 댓글