강의

멘토링

커뮤니티

Inflearn Community Q&A

f10213057669's profile image
f10213057669

asked

Web Crawling with R - Introduction

Crawling the list of Angelinus stores

readHTMLTable이 안되서..ㅠ

Written on

·

341

0

readHTMLTable이 안되서 다르게 했는데 1 페이지는 잘 됐습니다. 근데 2 페이지부터 안되네요..ㅠ 무엇이 문제인가요?ㅠㅠ

웹-크롤링R

Answer 2

0

zff님의 프로필 이미지
zff
Questioner

감사합니다! 벡터로 나와서 당황했지만 matrix로 잘 해결했습니다. 

0

coco님의 프로필 이미지
coco
Instructor

안녕하세요. zff 님

현재 엔제리너스 사이트는 기존의방식으로 크롤링이 불가능해보입니다.

readLines를 활용해서 규칙을 찾아서 수집하던가 아니면 아래와 같이 태그를 더 세분화해서 크롤링하는 수 밖에 없을 것 같습니다.

url<-paste0("http://www.angelinus.com/Shop/Shop_Ajax.asp?page=",2)

 read_html(url) %>% html_nodes(xpath="/html/body/table")%>% html_nodes("tr") %>% html_nodes("td") %>% html_te

f10213057669's profile image
f10213057669

asked

Ask a question