title: rvest: getting links from css node error: no applicable method for 'xml_find_all'
body: <p>I would like to determine the number of pages from pagination on the page: 
  <a href="https://aplikacje.nfz.gov.pl/umowy/Provider/Index?ROK=2017&amp;OW=07&amp;ServiceType=03&amp;Code=&amp;Name=&amp;City=&amp;Nip=&amp;Regon=&amp;Product=&amp;OrthopedicSupply=false" rel="nofollow noreferrer">https://aplikacje.nfz.gov.pl/umowy/Provider/Index?ROK=2017&amp;OW=07&amp;ServiceType=03&amp;Code=&amp;Name=&amp;City=&amp;Nip=&amp;Regon=&amp;Product=&amp;OrthopedicSupply=false</a></p>
  
  <pre><code>============
  Table
  ============
       Pagination: Link1, Link2, Link3, Link4, LinkNext,Link Last
  </code></pre>
  
  <p>With selector gadget I identified the pagination is in ".pagination-container, a"</p>
  
  <p>I would like to </p>
  
  <ol>
  <li>dump all the links in the pagination to a vector or data.frame</li>
  <li>get the last number in the urls strings</li>
  <li>determine max number indicating how many pages are there in the pagination to use it later on in a scraping loop</li>
  </ol>
  
  <p>Following <a href="http://francojc.github.io/web-scraping-with-rvest/" rel="nofollow noreferrer">http://francojc.github.io/web-scraping-with-rvest/</a></p>
  
  <p>I started with </p>
  
  <pre><code>library(tidyverse)
  library(rvest)
  
  url &lt;- "https://aplikacje.nfz.gov.pl/umowy/Provider/Index?ROK=2017&amp;OW=07&amp;ServiceType=03&amp;Code=&amp;Name=&amp;City=&amp;Nip=&amp;Regon=&amp;Product=&amp;OrthopedicSupply=false"
  
  urls &lt;- url %&gt;% # feed `main.page` to the next step
    html_nodes(".pagination-container, a") %&gt;% # get the CSS nodes
    html_text("href")  
  </code></pre>
  
  <p>On html_nodes it throws an error </p>
  
  <pre><code>Error in UseMethod("xml_find_all") : 
    no applicable method for 'xml_find_all' applied to an object of class "character"
  </code></pre>
  
  <p>What am I doing wrong?</p>