title: Beautiful soup. Scraping multiple urls with Python3
body: <p>When I run the following code...</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  counter = []
  url = 'https://www.somemuseum.org/exhibitions/current-exhibitions'
  req = requests.get(url)
  soup = BeautifulSoup(req.text, 'html.parser')
  links = soup.find_all(href="{{ card.url }}")
  counter.append(links)
  print(counter)
  </code></pre>
  
  <p>It returns...</p>
  
  <pre><code>&lt;a class="card card--exhibit {{ card.type }}" href="{{ card.url }}"&gt;
  </code></pre>
  
  <p>Inspecting the same element on the site shows it stored as...</p>
  
  <pre><code>&lt;a href="/exhibitions/listings/2018/current-listing" class="card card--exhibit is-tier1"&gt;
  </code></pre>
  
  <p>What I'd like to do is a <code>for loop</code> similar to the following... </p>
  
  <pre><code>for link in links:
      if card.type=="is-tier1":
          exhibit = soup.get('card.url')
          counter.append(exhibit)
  </code></pre>
  
  <p>I'm new to Beautiful Soup so any help is appreciated. Thank you.</p>