get list of crypto coins from cryptocompare.com with python


$ cat list_of_crypto_coins.py
#!/home/ubuntu/anaconda3/bin/python

import json
from bs4 import BeautifulSoup
import requests 

url = "https://www.cryptocompare.com/api/data/coinlist/"
response = requests.get(url)
soup = BeautifulSoup(response.content, "html.parser")
data = json.loads(soup.prettify())
data = data['Data']

print(data)  # display the content
$