33
33

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rvest すげえ。#rstatsj

Last updated at Posted at 2014-11-26

Hadley 神の造りし rvest、ちょっとしたスクレイピングコードが一瞬で書けたので凄いなと思いました。

R
library(rvest)

html <- html("http://tabelog.com/tokyo/A1307/A130701/13094275/")

access <- html %>%
  html_nodes(xpath = '//*[@id="accesslog"]/div/ul/li/em') %>%
  html_text()

print(access)
結果
[1] "2,326" "2,148"

参考

関連

33
33
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
33
33

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?