We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a572de commit 8d13bfcCopy full SHA for 8d13bfc
web_programming/current_stock_price.py
@@ -8,7 +8,7 @@ def stock_price(symbol: str = "AAPL") -> str:
8
url, headers={"USER-AGENT": "Mozilla/5.0"}, timeout=10
9
).text
10
soup = BeautifulSoup(yahoo_finance_source, "html.parser")
11
- specific_fin_streamer_tag = soup.find("fin-streamer", {"data-test": "qsp-price"})
+ specific_fin_streamer_tag = soup.find("fin-streamer", {"data-testid": "qsp-price"})
12
13
if specific_fin_streamer_tag:
14
text = specific_fin_streamer_tag.get_text()
0 commit comments