title: How to search for part of id while web scraping?
body: <p>I am learning python web scraping and I am testing it and so far its giving me what I need but one record.</p>
  <p>Upon checking the id I am testing scraping on is appended by some characters before. e.g.:</p>
  <pre><code> id=&quot;List_1__firstName&quot;
  </code></pre>
  <p>So I want to get records using part of the id more like <code>%%_firstName</code>.</p>
  <pre><code>_firstName
  </code></pre>
  <p>How do I go about this? This is my current code:</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  url = 'https://****.co**/'
  headers = {&quot;User-Agent&quot;: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36'}
  page = requests.get(url, headers=headers)
  soup = BeautifulSoup(page.content, 'html.parser')
  Name = soup.find(id='List_l0_l00_firstName').get_text()
  print(Name)
  </code></pre>