title: Cannot get the value href attribute even when it is diplayed when the whole dictionary is printed
body: <p>I am trying to scrape links from a website with the help of following code:</p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  
  def get_links(url):
      page = requests.get(url)
      soup = BeautifulSoup(page.content, 'html.parser')
  
      link = soup.find('a', class_="eds-media-card-content__action-link")
      print("Link attributes:", link.attrs)
      for k, v in link.attrs.items():
              print(k, v)
  
      print("Link: ", link.attrs['href'])
  
  get_links("https://www.eventbrite.com/d/online/all-events/?page=1")
  </code></pre>
  
  <p>The output of the following code is:</p>
  
  <pre><code>Link attributes: {'tabindex': '-1', 'href': 'https://www.eventbrite.com/e/livestream-jon-kabat-zinn-cultivating-mindfulness-at-this-critical-time-tickets-101254729622?aff=ebdssbonlinesearch', 'class': ['eds-media-card-content__action-link'], 'aria-label': 'See more of Livestream Jon Kabat-Zinn: Cultivating Mindfulness at this Critical Time'}
  tabindex -1
  href 
  class ['eds-media-card-content__action-link']
  aria-label See more of Livestream Jon Kabat-Zinn: Cultivating Mindfulness at this Critical Time
  Link:  
  </code></pre>
  
  <p>As it can be seen, href attribute is not empty in the above dictionary, but when I try to access it, an empty string is returned.
  What am I doing wrong?</p>
  
  <p>Edit: The problem has been solved (partially). I was running it on jupyter notebook on my pc, and the link wasn't displayed. But when I put it in a .py file and run it, the link is displayed. 
  Still don't know the reason of jupyter notebook behaving like that.</p>