title: Why can't I get the URL from the hyperlink on this web page?
body: <p>I tried to extract URL from a hyperlink in this web: <a href="https://etherscan.io/tokens" rel="nofollow noreferrer">https://etherscan.io/tokens</a></p>
  <p>I used the following Python code:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>import requests
  from bs4 import BeautifulSoup
  
  
  urls = 'https://etherscan.io/tokens'
  grab = requests.get(urls)
  soup = BeautifulSoup(grab.text, 'html.parser')
  
  # opening a file in write mode
  f = open("test1.txt", "w")
  # traverse paragraphs from soup
  for link in soup.find_all("a"):
      data = link.get('href')
      f.write(data)
      f.write("\n")
  
  f.close()</code></pre>
  </div>
  </div>
  </p>
  <p>The problem is this code does not return any URL. There is only error:
  <a href="https://www.cloudflare.com/5xx-error-landing" rel="nofollow noreferrer">https://www.cloudflare.com/5xx-error-landing</a></p>
  <p>I used VScode under W10.</p>