title: Soup.select method in python - how to choose only one score?
body: <p>I want to display only first score of soup.select method, now i have this code:</p>
  
  <pre><code>score = soup.select('my_name a')
  print(score)
  
  urls = [tag['href'] for tag in score if 'href' in tag.attrs and "name" in tag['href']]
  print(urls)
  </code></pre>
  
  <p>When bs finds only one score, it works very good. But how to choose only first score when i get more scores?</p>
  
  <p>Now output is:</p>
  
  <pre><code>&gt; [&lt;a href="/name/adrian1021 "&gt; Adrian &lt;/a&gt;, &lt;a href="/name/john.james"&gt; John James &lt;/a&gt;, &lt;a href="/name/carol22 "&gt; Carol Coat &lt;/a&gt;]
  &gt; 
  &gt; ['/name/adrian1021 ', '/name/john.james ', '/name/carol22 ']
  </code></pre>
  
  <p>I want to extract only one score, for example output should be:</p>
  
  <pre><code>[/name/adrian1021 ']
  </code></pre>
  
  <p>Is that possible? I tried to work on this like on list but it does not work.</p>