forkonlp / dnh4 Goto Github PK
View Code? Open in Web Editor NEW다음 뉴스 수집을 위한 도구
Home Page: https://forkonlp.github.io/DNH4
License: Other
다음 뉴스 수집을 위한 도구
Home Page: https://forkonlp.github.io/DNH4
License: Other
2-3000개 까지는 문제 없이 되는데
5000을 넘어가게 되면
turl <- "http://v.media.daum.net/v/20200522093902880"
commentA = DNH4::getAllComment(turl)
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 100, 99
위와 같은 에러가 납니다. (다른 기사도 마찬가지였습니다.)
안녕하세요.
다음 패키지에서 parameter로 "all"을 써서 모든 댓글을 가지고 오고싶은데 에러가 나네요.
제가 이용한 코드와 에러 공유합니다.
dmp<- getComment(turl = 'https://news.v.daum.net/v/20160714120503515', limit = "all", parentId = 0, type = c("df", "list"))
Error: $ operator is invalid for atomic vectors
감사합니다!
GET("https://like.daum.net/item/news/20180504211336334.json") %>% content()
http://v.media.daum.net/v/20160701030305108
chk getContent
getContent 함수 실행 시, 아래와 같은 에러가 발생합니다.
Error in as.POSIXlt.character(datetime) :
문자열이 표준서식을 따르지 않습니다
getComment는 정상 작동합니다.
client_id <- httr::GET(turl)
client_id <- httr::content(client_id)
client_id <- rvest::html_nodes(client_id, ".alex-area")
client_id <- rvest::html_attr(client_id, "data-client-id")
tar <- paste0("https://comment.daum.net/auth/credential?client_id=", client_id)
ad <- httr::add_headers(Referer = turl)
auth <- httr::GET(tar, ad)
auth <- httr::content(auth)
ERROR
올려주신 코드를 R스튜디오에서 돌려보고 있습니다.
기사의 제목이나 댓글의 한글이 깨져서 나오는데
어떻게 하면 될까요?
운영체제는 윈도우즈를 사용하고 있습니다
감사합니다 ^^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.