Skip to content

Commit 950ea9c

Browse files
committed
adding test to web_programming/current_stock_price
1 parent 8eab6b3 commit 950ea9c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

web_programming/current_stock_price.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
from bs4 import BeautifulSoup
44
from requests import get
55

6+
"""
7+
Get the HTML code of finance yahoo and select the current qsp-price
8+
Current AAPL stock price is 228.43
9+
Current AMZN stock price is 201.85
10+
Current IBM stock price is 210.30
11+
Current GOOG stock price is 177.86
12+
Current MSFT stock price is 414.82
13+
Current ORCL stock price is 188.87
14+
"""
15+
616

717
def stock_price(symbol: str = "AAPL") -> str:
818
"""

0 commit comments

Comments
 (0)