title: GET URL with Hashtag in r
body: <p>I like to get the url with hashtag with the r GET function from the httr package</p>
  
  <pre><code>httr::GET("https://en.wikipedia.org/wiki/Kona_Lanes#Peak_years")
  </code></pre>
  
  <p>However only the url before the hashtag is returned.</p>
  
  <p>Another example is the following. The results for the "first" and "second" page are </p>
  
  <pre><code> library(httr)
   url1 = "example.com"
   url2 = "example.com#foo=bar"
   res1 &lt;-  htmlTreeParse(GET(paste("https://www.",url1,sep="") ),useInternalNodes = TRUE)
   res2 &lt;-  htmlTreeParse(GET(paste("https://www.",url2,sep="")),useInternalNodes = TRUE)
  </code></pre>