title: web scraping across multiple pages with rvest
body: <p>I have a website that I would like to scrape data from, but there are 8 pages worth of data.  I have used the following to get the first page of data</p>
  
  <pre><code>library(rvest)
  library(stringr)
  library(tidyr)
  
  site &lt;- 'http://www.basketball-reference.com/play-index/draft_finder.cgi?request=1&amp;year_min=2001&amp;year_max=2014&amp;college_id=0&amp;pos_is_g=Y&amp;pos_is_gf=Y&amp;pos_is_f=Y&amp;pos_is_fg=Y&amp;pos_is_fc=Y&amp;pos_is_c=Y&amp;pos_is_cf=Y&amp;order_by=year_id'
  webpage &lt;- read_html(site)
  
  draft_table &lt;- html_nodes(webpage, 'table')
  draft &lt;- html_table(draft_table)[[1]]
  head(draft)
  draft &lt;- draft[-1,]
  names(draft) &lt;- c("rank", "year", "league", "round", "pick", "team",     "player", "age", "position", "birth", "college",
                    "yearin", "lastyear", "car.gp", "car.mp", "car.ppg", "car.rebpg", "car.apg", "car.stlpg", "car.blkpg",
                "car.fgp", "car.2pfgp", "car.3pfgp", "car.ftp", "car.ws", "car.ws48")
  
  draft &lt;- draft[draft$player != "" &amp; draft$player != "Player", ]
  </code></pre>
  
  <p>It appears that the urls move in sequence, with the first page having offset=0, and the second offset=100, the third page offset=200 and so on.  </p>
  
  <p>My problem is that I cannot find a straightforward way to scrape all 8 pages at once without manually pasting the urls into the "site" vector above. I would like to be able to do it generally so if there exists a general rvest solution that would be great.  Otherwise, any help or suggestions would be greatly appreciated. Thanks so much.</p>