SHARE
TWEET

Untitled

a guest Nov 23rd, 2017 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top