我试图用rvest软件包来抓取一组网页。它适用于大部分的网页,但我可以用rvest我无法使用rvest获得价值
url <- "http://www.trademe.co.nz/Browse/CategoryAttributeSearchResults.aspx?search=1&cid=5748&sidebar=1&132=FLAT&selected135=5&134=1&135=5&216=0&216=0&217=0&217=0&153=&122=0&122=0&123=0&123=0&59=25000&59=35000&178=0&178=0&sidebarSearch_keypresses=0&sidebarSearch_suggested=0"
rent_html <- read_html(url)
html_nodes(rent_html, "div.property-card-subtitle") # it works
html_nodes(rent_html, "div.list-view-card-price") # but this is not works
我想在网络上的租金价格的价值得到租赁费的信息,但我不知道如何访问它。
'html_nodes(rent_html, “div.property卡价格容器”)'? –
我只想获得[div.list-view-card-price] inner [div.property-card-price-containe]的信息。这是不可能的吗? –