I am trying to get cryptocurrency price changes from coinbase by parsing with beautiful soup. on the coinbase website (https://www.coinbase.com/price/ethereum) I can find the html element for the price change.
<h4 class="TextElement__Spacer-hxkcw5-0 caIgfs Header__StyledHeader-sc-1xiyexz-0 dLILyj">+0.33%</h4>
And then in python I use beautiful soup to find this element by looking through the h4 tag and it finds other h4 tags but not the one i am looking for
import requests
from bs4 import BeautifulSoup
result = requests.get("https://www.coinbase.com/price/ethereum")
src = result.content
soup = BeautifulSoup(src, "html.parser")
tags = soup.find_all("h4")
print (tags)