title: Assistance with Cleaning Data Scraping Output
body: <p>I'm new to Python and I was wondering what would be the best way to clean the output of the code. This is what I have so far:</p>
  
  <pre><code># DNH KDR Checker
  
  import time
  import urllib.request
  import csv
  from datetime import datetime
  from bs4 import BeautifulSoup
  
  print("Please Enter SteamID64")
  player = input()
  
  dnh = 'https://pug.districtnine.host/profile?id=' + str(player)
  page = urllib.request.urlopen(dnh)
  soup = BeautifulSoup(page, 'html.parser')
  
  kdr_value = soup.find(class_="col-md-3")
  
  print(kdr_value.prettify())
  </code></pre>
  
  <p>When I enter a Steam64ID (In this case, 76561198802827420) The Output Comes out like this:</p>
  
  <pre><code>&lt;div class="col-md-3"&gt;
   &lt;h4&gt;
    &lt;i class="fas fa-crosshairs"&gt;
    &lt;/i&gt;
    Kills: 1717
   &lt;/h4&gt;
   &lt;h4&gt;
    &lt;i class="fas fa-skull"&gt;
    &lt;/i&gt;
    deaths:
    &lt;strong&gt;
     1462
    &lt;/strong&gt;
    &lt;br/&gt;
   &lt;/h4&gt;
   &lt;h4&gt;
    &lt;i class="fas fa-dot-circle"&gt;
    &lt;/i&gt;
    kdr: 1.17
    &lt;br/&gt;
   &lt;/h4&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But I want it to come out like this:</p>
  
  <pre><code>Kills: 1717
  Deaths: 1462
  KDR: 1.17
  </code></pre>