Skip to content

Commit 8d13bfc

Browse files
committed
Fix no data-test attribute found in current_stock_price.py
1 parent 9a572de commit 8d13bfc

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
@@ -8,7 +8,7 @@ def stock_price(symbol: str = "AAPL") -> str:
88
url, headers={"USER-AGENT": "Mozilla/5.0"}, timeout=10
99
).text
1010
soup = BeautifulSoup(yahoo_finance_source, "html.parser")
11-
specific_fin_streamer_tag = soup.find("fin-streamer", {"data-test": "qsp-price"})
11+
specific_fin_streamer_tag = soup.find("fin-streamer", {"data-testid": "qsp-price"})
1212

1313
if specific_fin_streamer_tag:
1414
text = specific_fin_streamer_tag.get_text()

0 commit comments

Comments
 (0)