Guest User

Untitled

a guest
Nov 23rd, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. library(rvest)
  2. webpage <- data.frame("https://www.bloomberg.com/quote/INDU:IND")
  3. z <- sapply(webpage, function(url){ url %>% as.character() %>% read_html() %>% html_nodes(xpath = '//meta[@itemprop="price"]') %>% html_attr('content')})
  4. (z <- as.character.numeric_version(z))
Add Comment
Please, Sign In to add comment