title: Web Scraping a tableauViz into an R dataframe
body: <p>I have spent a lot of time searching for an answer to this, but have not found anything yet. What I am trying to accomplish is to scrape Tableau table information that is contained in a tableauViz element and propagate it into an R dataframe. In my first attempt, using RStudio, I employed the following code and tried to read the tableauViz as HTML</p>
  <pre><code># Load rvest functions
  library(rvest)
  # Specifying the url for desired website to be scrapped
  url &lt;- “https://oir.uga.edu/factbook/studentinformation/S07StuP58/”
  # Reading the HTML code from the website                                          
  webpage &lt;- read_html(url)  
  # Using CSS selectors to scrap the rankings section                                                     
  rank_data_html &lt;- html_nodes(webpage,'.tableauViz')
  </code></pre>
  <p>The output was formatted as an xml_nodeset list as follows.</p>
  <pre><code>[[1]]
  [[1]][[1]]
  [1] &quot;\n                                    &quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;host_url&quot;
  attr(,&quot;value&quot;)
  [1] &quot;https%3A%2F%2Fpublic.tableau.com%2F&quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;site_root&quot;
  attr(,&quot;value&quot;)
  [1] &quot;&quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;name&quot;
  attr(,&quot;value&quot;)
  [1] &quot;S07StuP58/Dashboard1&quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;tabs&quot;
  attr(,&quot;value&quot;)
  [1] &quot;no&quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;toolbar&quot;
  attr(,&quot;value&quot;)
  [1] &quot;yes&quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;static_image&quot;
  attr(,&quot;value&quot;)
  [1] &quot;https://public.tableau.com/static/images/S0/S07StuP58/Dashboard1/1.png&quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;animate_transition&quot;
  attr(,&quot;value&quot;)
  [1] &quot;yes&quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;display_static_image&quot;
  attr(,&quot;value&quot;)
  [1] &quot;yes&quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;display_spinner&quot;
  attr(,&quot;value&quot;)
  [1] &quot;yes&quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;display_overlay&quot;
  attr(,&quot;value&quot;)
  [1] &quot;yes&quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;display_count&quot;
  attr(,&quot;value&quot;)
  [1] &quot;yes&quot;
  
  [[1]]$param
  list()
  attr(,&quot;name&quot;)
  [1] &quot;filter&quot;
  attr(,&quot;value&quot;)
  [1] &quot;publish=yes&quot;
  
  attr(,&quot;.class&quot;)
  [1] &quot;tableauViz&quot;
  attr(,&quot;style&quot;)
  [1] &quot;display:none;&quot;
  </code></pre>
  <p>The only attribute from that list that I found of value was the static image png link.</p>
  <p><a href="https://i.stack.imgur.com/Omy9Z.jpg" rel="nofollow noreferrer">Tableau Static png</a></p>
  <p>However, I don’t believe I’ll be able to convert any of that into a dataframe.</p>
  <p>The only reference to this issue was this excellent YouTube Video “Integrating Tableau with R through R Notebooks and Shiny”. I navigated to the author’s <a href="https://github.com/fissehab?tab=repositories" rel="nofollow noreferrer">GitHub site</a> to see if I could find some sample code but I was unable to locate any.</p>
  <p>How do I resolve this issue?</p>