Python 또는 R로 Gmarket 등의 오픈마켓의 구매 후기를 파싱 / 크롤링 하는 코드를 작성하는 방법
조회수 1697회
Python 또는 R로 Gmarket 등의 오픈마켓의 구매 후기를 파싱 / 크롤링 하는 코드를 작성하는 방법에 대해 알고 싶습니다.
R에서 쿠팡의 제품리스트를 뽑을때 이런식으로 했었는데, 지마켓은 어떻게 할 수있을까요? 각 제품에 대한 상품평을 가능하다면 별점도 함께 수집하고싶습니다.
library(rvest)
library(httr)
url=''
response=GET(url)
htxt=read_html(response)
comments=html_nodes(htxt,'div.name')
html_text(comments)
comments=repair_encoding(html_text(comments))
comments <-gsub("\n","",comments)
comments
writeLines(comments,"comments.txt")
-
(•́ ✖ •̀)
알 수 없는 사용자
댓글 입력