title: Beautifulsoup: parsing html – get part of href
body: <p>I'm trying to parse</p>
  
  <pre><code>&lt;td height="16" class="listtable_1"&gt;&lt;a href="http://steamcommunity.com/profiles/76561198134729239" target="_blank"&gt;76561198134729239&lt;/a&gt;&lt;/td&gt;
  </code></pre>
  
  <p>for the 76561198134729239. and I can't figure out how to do it. what I tried:</p>
  
  <pre><code>import requests
  from lxml import html
  from bs4 import BeautifulSoup
  r = requests.get("http://ppm.rep.tf/index.php?p=banlist&amp;page=154")
  content = r.content
  soup = BeautifulSoup(content, "html.parser")
  element = soup.find("td", 
  {
      "class":"listtable_1",
      "target":"_blank"
  })
  print(element.text)
  </code></pre>