title: Scrape URLs using BeautifulSoup in Python 3
body: <p>I tried this code but the list with the URLs stays empty. No error massage, nothing.</p>
  
  <pre><code>from bs4 import BeautifulSoup
  from urllib.request import Request, urlopen
  import re
  
  req = Request('https://www.metacritic.com/browse/movies/genre/date?page=0', headers={'User-Agent': 'Mozilla/5.0'})
  html_page = urlopen(req).read()
  
  soup = BeautifulSoup(html_page, features="xml")
  links = []
  for link in soup.findAll('a', attrs={'href': re.compile("^https://www.metacritic.com/movie/")}):
      links.append(link.get('href'))
  
  print(links)
  </code></pre>
  
  <p>I want to scrape all the URLs that start with "<a href="https://www.metacritic.com/movie/" rel="nofollow noreferrer">https://www.metacritic.com/movie/</a>" that are found in the given URL "<a href="https://www.metacritic.com/browse/movies/genre/date?page=0" rel="nofollow noreferrer">https://www.metacritic.com/browse/movies/genre/date?page=0</a>".</p>
  
  <p>What am I doing wrong?</p>