搜刮Google评论

时间:2019-05-15 13:39:57

标签: r web web-crawler

无法从Manipal Hospital的Google评论中抓取数据

尝试使用tidyverse刮刮的常规方式

url2 =“ https://www.google.com/search?safe=off&rlz=1C1NHXL_zh-CNIN845IN845&ei=ngvcXNClHeviz7sPiK6C2AM&q=manipal%20hospital&oq=manipal+hospital+&gs_l=psy-ab.3..35i39l2j0i131。 ..0.0..0.134.1683.9j8 ...... 0 .... 1..gws-wiz ....... 0i71j0i131i67j0i67.0UDK50pBVB8&npsic = 0&rflfq = 1&rlha = 0&rllag = 12973542,77688040,4665&tbm = lcl&rldimm = 17113747921043320206&LQI = ChBtYW5pcGFsIGhvc3BpdGFsIgOIAQFaEgoQbWFuaXBhbCBob3NwaXRhbA&VED = 2ahUKEwipiuuXyp3iAhUDmuYKHY3dDVAQvS4wB3oECAcQHQ&rldoc = 1&TBS = LRF:2M1 1E3 2M1 1E16 3sIAE,LF:1,lf_ui:4#LRD = 0x3bae11ec9eb7b41b:0xed803f0fc95ded8e,1 ,,,&rlfi = HD:;!!!SI:17113747921043320206,升,ChBtYW5pcGFsIGhvc3BpdGFsIgOIAQFaEgoQbWFuaXBhbCBob3NwaXRhbA; mv:!1m2!1d13.0087864!2d77.7383352!2m2!1d12.912026299999999!2 !! d! 3m2!1i537!2i290!4f13.1; tbs:lrf:!2m1!1e3!2m1!1e16!3sIAE,lf:1,lf_ui:4“

webpage2 = read_html(url2)

review = webpage2%>%html_nodes(“。r-ioVvnv71eT7k,.r-ik9NeSynSN1I,.review-full-text”)%>%html_text()

所有评论的预期清单

0 个答案:

没有答案