Hello
la pluspart des module python fait pour choper les datas des cours sont super cher,
pour l'instant je fonctionne avec le module request
def get_coinmarketcap_price(symbol, class_="priceValue___11gHJ"):
#get url from coinmarketcap
names = {
"BTC" :"bitcoin",
"ETH" :"ethereum",
}
url = f"https://coinmarketcap.com/currencies/{names[symbol]}/"
#get html content
html = requests.get(url, stream=True)
html = str(html.content)
#read html content with soup
soup = BeautifulSoup(html, 'html.parser')
price = soup.find(class_=class_)
price = price.string.replace("$","").replace(",","_")
return float(price)
mais c'est ultra CLODO et j'irai pas bien loins donc si les clés calé en programmation on des conseils de module (gratuit si possible?) ou des adresses HTML fait à cet égard ce serais sympa de filer vos bons plans 
Message édité le 13 mai 2021 à 01:56:05 par BienSoumis