title: rvest & parsing HTML: find a list of items, and extract specific information from each item
body: <p>I'm struggling to find neat code to do the following:</p>
  
  <ul>
  <li>Find a list of five items</li>
  <li>Iterate over all five items</li>
  <li>Extract 4 columns from each item</li>
  <li>return a dataframe with five rows, one for each item.</li>
  </ul>
  
  <p>Example HTML:</p>
  
  <pre><code>&lt;div class="i-am-a-list"&gt;
      &lt;div class="item item-one"&gt;&lt;a href=""&gt;&lt;/a&gt;&lt;a class="title"&gt;&lt;/a&gt;&lt;p&gt;sub-title&lt;/p&gt;&lt;/div&gt;
      &lt;div class="item item-two"&gt;&lt;a href=""&gt;&lt;/a&gt;&lt;a class="title-two"&gt;&lt;/a&gt;&lt;p&gt;sub-title&lt;/p&gt;&lt;/div&gt;
      &lt;div class="item item-three"&gt;&lt;a href=""&gt;&lt;/a&gt;&lt;a class="title-three"&gt;&lt;/a&gt;&lt;p&gt;sub-title&lt;/p&gt;&lt;/div&gt;
      &lt;div class="item item-four"&gt;&lt;a href=""&gt;&lt;/a&gt;&lt;a class="title-for"&gt;&lt;/a&gt;&lt;p&gt;sub-title&lt;/p&gt;&lt;/div&gt;
      &lt;div class="item item-five"&gt;&lt;a href=""&gt;&lt;/a&gt;&lt;a class="title-five"&gt;&lt;/a&gt;&lt;p&gt;sub-title&lt;/p&gt;&lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Code thus far:</p>
  
  <pre><code># find the upper list   
  coll &lt;- read_html(doc.html) %&gt;%
    html_node('.i-am-a-list') %&gt;%
    html_nodes(".item")
  
  # problems here, how do I iterate over the returned divs 
  # I was expecting something like
  results &lt;- coll %&gt;% 
      do(parse_a_single_item) %&gt;%
      rbind_all()
  </code></pre>
  
  <p>Would it be possible to write such pretty code to do such a common task? :)</p>