title: I'm trying to webscrape, but I'm failing at a loop. Using R
body: <p>everyone. I know this is stupid and I wouldn't be asking if I hadn't checked every single <em>for loop</em> answer here.</p>
  <p>But I need to scrape 95 pages and I can't figure out how to loop it.</p>
  <p>This is the code:</p>
  <pre><code>url &lt;- &quot;https://www.riksdagen.se/sv/Dokument-Lagar/?datum=2000-01-01&amp;q=kvinn&amp;st=2&amp;tom=2018-12-31&amp;doktyp=fr&amp;p=&quot;
  
  page &lt;- read_html(url)
  title_html &lt;- html_nodes(page,'.medium-big')    
  text_html &lt;- html_nodes(page,'.font-bold')   
  full_html &lt;- html_nodes(page, '.medium-smaller')
  text_html[[21]] &lt;- NULL
  full_html[c(1, 21, 22)] &lt;- NULL
  title &lt;- html_text(title_html)
  text &lt;- html_text(text_html)
  full &lt;- html_text(full_html)
  frame &lt;- data.frame(title, text, full) 
  </code></pre>
  <p>It gets me everything I need, except I need to go page by page. I'm using rvest and dplyr.</p>
  <p>Thanks in advance.</p>