title: Python screenshot especific tab each time it loads
body: <p><strong>The problem:</strong> I want to write a Python script that takes a screenshot of a website I have opened in a browser each time it loads.</p>
  
  <p>The thing is that I have a website where there are like 300 exam questions which I can get through, try each one of them and I will have the correction when I submit my answer. I will not have access to this questionnaire after a certain date, but I want to keep the questions (which I could write down, but laziness is strong in me, and want to learn Python).</p>
  
  <p><strong>The "attempt":</strong> I thought of doing a simple Python script with imgkit to take the screenshots. I'm opened to other suggestions, as imgkit was the first thing I saw while looking for this, and the code looks plain and simple to me:</p>
  
  <pre><code>import imgkit
  
  imgkit.from_url('http://webpage.com', 'out.jpg')
  </code></pre>
  
  <p>But I have to provide the url for each webpage, and that will be more tedious than taking a screenshot with OS features, thus I want to automatize it.</p>
  
  <p><strong>The questions:</strong> </p>
  
  <ul>
  <li>There is a way to make Python <em>monitor</em> a browser tab and take a screenshot each time it reloads (that will be when a new question appears)?</li>
  <li>Or maybe get the tab's URL to pass it to imgkit and take the screenshot.</li>
  <li>Another thing that I saw is that imgkit can generate a "screenshot" from a HTML file. Can Python download the HTML code from a tab I have open in my browser?</li>
  </ul>