title: python beautifulsoup4 find href link from the find_all result
body: <p>I've spend few days to make some program to crawl an website.</p>
  <pre><code>coin_link = requests.get('https://www.coingecko.com/en/coins/bitcoin')
  soup2 = bs(coin_link.text, &quot;html.parser&quot;)
  
  to_find_github_link = soup2.find_all('div',{'class':'tw-flex flex-wrap tw-font-normal'})
      
  for x in to_find_github_link:
      time.sleep(1)
      Newx = x.text
      Newx = Newx.split()
  </code></pre>
  <p>When I print the result of x, one of the result contains what I looking for.</p>
  <pre><code>&lt;a class=&quot;tw-px-2.5 tw-py-1 tw-my-0.5 tw-mr-1 tw-rounded-md tw-text-sm tw-font-medium tw-bg-gray-100 tw-text-gray-80
  0 hover:tw-bg-gray-200 dark:tw-text-white dark:tw-bg-white dark:tw-bg-opacity-10 dark:hover:tw-bg-opacity-20 dark:focus:tw-bg-opacity-20&quot;
  href=&quot;https://github.com/bitcoin&quot; rel=&quot;nofollow noopener&quot; target=&quot;_blank&quot;&gt;&lt;i class=&quot;fab mr-1 fa-github&quot;&gt;&lt;/i&gt;Github&lt;/a&gt;
  </code></pre>
  <p>I wanna get the [href=&quot;https://github.com/bitcoin&quot;] link out of the result.
  I've tried to use the</p>
  <pre><code>x['href']
  x.select['href']
  </code></pre>
  <p>such things but didn't work. I'm new to bs..
  could I get some help?
  thanks :)</p>