21.2 Websites (rvest)

IMDB Top Rated Movies:

http://www.imdb.com/chart/top?ref_=nv_mv_250_6

http://selectorgadget.com/

CSS class and id

lego_movie %>%
  html_nodes(".primary_photo , .ellipsis, .character, #titleCast .itemprop, #titleCast .loadlate")
## {xml_nodeset (87)}
##  [1] <td class="primary_photo">\n<a href="/name/nm0004715/?ref_=tt_cl_i1 ...
##  [2] <img height="44" width="32" alt="Will Arnett" title="Will Arnett" s ...
##  [3] <td class="itemprop" itemprop="actor" itemscope itemtype="http://sc ...
##  [4] <span class="itemprop" itemprop="name">Will Arnett</span>
##  [5] <td class="ellipsis">\n              ...\n          </td>
##  [6] <td class="character">\n            <a href="/title/tt1490017/chara ...
##  [7] <td class="primary_photo">\n<a href="/name/nm0006969/?ref_=tt_cl_i2 ...
##  [8] <img height="44" width="32" alt="Elizabeth Banks" title="Elizabeth  ...
##  [9] <td class="itemprop" itemprop="actor" itemscope itemtype="http://sc ...
## [10] <span class="itemprop" itemprop="name">Elizabeth Banks</span>
## [11] <td class="ellipsis">\n              ...\n          </td>
## [12] <td class="character">\n            <a href="/title/tt1490017/chara ...
## [13] <td class="primary_photo">\n<a href="/name/nm1911947/?ref_=tt_cl_i3 ...
## [14] <td class="itemprop" itemprop="actor" itemscope itemtype="http://sc ...
## [15] <span class="itemprop" itemprop="name">Craig Berry</span>
## [16] <td class="ellipsis">\n              ...\n          </td>
## [17] <td class="character">\n            Blake /  \n            Addition ...
## [18] <td class="primary_photo">\n<a href="/name/nm1555340/?ref_=tt_cl_i4 ...
## [19] <img height="44" width="32" alt="Alison Brie" title="Alison Brie" s ...
## [20] <td class="itemprop" itemprop="actor" itemscope itemtype="http://sc ...
## ...