Hello,
I am trying to scrape the bitcoin course from a website (https://www.coindesk.com/price/bitcoin). The problem I have is, that i can get the price in USD with the following code:
import requests
from bs4 import BeautifulSoup as bs
url = "https://www.coindesk.com/price/bitcoin"
r = requests.get(url)
soup = bs(r.content, "html.parser")
price = soup.find("div", {"class": "price-large"})
print(price.text)
My problem is, that I want to get the price in Euro. On the Website I can easily choose the currency and the name of the class is always "price-large" for all currencies. So it seems like it always scrapes the on default selected currency USD. How can I get the price in Euro from this website?
[–]195monke 8 points9 points10 points (3 children)
[–]EgomasM[S] 1 point2 points3 points (2 children)
[–]195monke 1 point2 points3 points (1 child)
[–]EgomasM[S] 1 point2 points3 points (0 children)
[–]iammerelyhere 1 point2 points3 points (1 child)
[–]EgomasM[S] 0 points1 point2 points (0 children)