Skip to content

Commit 4965bef

Browse files
Update current_stock_price.py
1 parent 879e553 commit 4965bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_programming/current_stock_price.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def stock_price(symbol: str = "AAPL") -> str:
2424
url, headers={"USER-AGENT": "Mozilla/5.0"}, timeout=10
2525
).text
2626
soup = BeautifulSoup(yahoo_finance_source, "html.parser")
27-
specific_fin_streamer_tag = soup.find("fin-streamer", {"data-test": "qsp-price"})
27+
specific_fin_streamer_tag = soup.find("fin-streamer", {"data-testid": "qsp-price"})
2828

2929
if specific_fin_streamer_tag:
3030
text = specific_fin_streamer_tag.get_text()

0 commit comments

Comments
 (0)