title: How to get only the value from an input using beautiful soup
body: <p>I have a code using beautiful soup that works perfectly to get an element by its id (I have to get by the id).
  But my output is the following:</p>
  <pre><code>[&lt;td id=&quot;testebia&quot;&gt;&lt;input type=&quot;text&quot; value=&quot;123599&quot;/&gt;&lt;/td&gt;]
  </code></pre>
  <p>I could only reduce to this:</p>
  <pre><code>&lt;input type=&quot;text&quot; value=&quot;123599&quot;/&gt;
  </code></pre>
  <p>using the following code:</p>
  <pre><code>from bs4 import BeautifulSoup
  import requests
  
  url = ('https://naughty-poincare-e28558.netlify.app/')
  
  r = requests.get(url)
  html_content = r.text
  soup = BeautifulSoup(html_content, 'html.parser')
  
  number = soup.select(&quot;#testebia&quot;)
  
  for lista_dados  in number:
    print(lista_dados.next_element) 
  </code></pre>
  <p>What can I do to get only the value? In this case 123599</p>