We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 879e553 commit 4965befCopy full SHA for 4965bef
web_programming/current_stock_price.py
@@ -24,7 +24,7 @@ def stock_price(symbol: str = "AAPL") -> str:
24
url, headers={"USER-AGENT": "Mozilla/5.0"}, timeout=10
25
).text
26
soup = BeautifulSoup(yahoo_finance_source, "html.parser")
27
- specific_fin_streamer_tag = soup.find("fin-streamer", {"data-test": "qsp-price"})
+ specific_fin_streamer_tag = soup.find("fin-streamer", {"data-testid": "qsp-price"})
28
29
if specific_fin_streamer_tag:
30
text = specific_fin_streamer_tag.get_text()
0 commit comments