title: Python Selenium: How do I print the values from a website in a text file?
body: <p>I'm trying to write a script that will grab the following 6 values from the website tulsaspca.org and print them in a .txt file.</p>
  <p><img src="https://i.stack.imgur.com/7pSR6.png" alt="6 Values" /></p>
  <p>The final output should be:</p>
  <pre class="lang-none prettyprint-override"><code>905 
  4896
  7105
  23194
  1004
  42000
  </code></pre>
  <p>HTML for &quot;Animals Placed&quot;</p>
  <pre><code>&lt;span class=&quot;number&quot; data-to=&quot;905&quot;&gt;905&lt;/span&gt;
  &lt;/div&gt;
  &lt;p class=&quot;title&quot;&gt;Animals Placed&lt;/p&gt;
  </code></pre>
  <p>I wrote the following code, but it doesn't seem to be working.</p>
  <pre class="lang-py prettyprint-override"><code>for element in driver.find_elements_by_class_name('Animals Placed'):
    print(element.text)
  </code></pre>