title: How to scrape JSON file from url and print contents
body: <p>Here is the website I want to scrape: <a href="https://s2.coinmarketcap.com/generated/search/quick_search.json" rel="nofollow noreferrer">https://s2.coinmarketcap.com/generated/search/quick_search.json</a></p>
  
  <p>I have no idea how to scrape the JSON file from the URL and print out the contents.
  I tried reading around, but the most I got was this code, which doesn't work when I run it:</p>
  
  <pre><code>import requests
  import json
  
  url = "https://s2.coinmarketcap.com/generated/search/quick_search.json"
  r = requests.get(url)
  cont = json.loads(r.content)
  print(cont)
  </code></pre>