title: Find href using Beautiful Soup - Python
body: <p>I'm trying to extract the first link from a page search, using beautiful soup, but it can't find the link for some reason.</p>
  <pre><code>from requests import get
  from bs4 import BeautifulSoup
  import requests
  
  band = &quot;it's my life bon jovi&quot;
  url = f'https://www.letras.mus.br/?q={band}'
  res = requests.get(url)
  soup = BeautifulSoup(res.content, 'html.parser')
  
  
  linkurl = soup.find_all(&quot;div&quot;, class_=&quot;wrapper&quot;)
  for urls in linkurl:
      
      print(urls.get('href'))
      #print(soup.a['href']) -- return /
      #print(soup.a['data-ctorig]) -- return nothing
  </code></pre>
  <p>I would like to get the link of the <strong>data-ctorig</strong> or the <strong>href</strong>, does this link have a script that is preventing me from looking for this information, or is it a problem with my code?</p>
  <p><a href="https://i.stack.imgur.com/qvSTd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qvSTd.png" alt="enter image description here" /></a></p>