title: R: Using rvest package instead of XML package to get links from URL
body: <p>I use XML package to get the links from <a href="http://www.bvl.com.pe/includes/empresas_todas.dat">this url</a>.</p>
  
  <pre><code># Parse HTML URL
  v1WebParse &lt;- htmlParse(v1URL)
  # Read links and and get the quotes of the companies from the href
  t1Links &lt;- data.frame(xpathSApply(v1WebParse, '//a', xmlGetAttr, 'href'))
  </code></pre>
  
  <p>While this method is very efficient, I've used <code>rvest</code> and seems faster at parsing a web than <code>XML</code>. I tried <code>html_nodes</code> and <code>html_attrs</code> but I can't get it to work.</p>