mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
adding test to web_programming/current_stock_price
This commit is contained in:
parent
8eab6b355e
commit
950ea9cb45
|
@ -3,6 +3,16 @@ from doctest import testmod
|
|||
from bs4 import BeautifulSoup
|
||||
from requests import get
|
||||
|
||||
"""
|
||||
Get the HTML code of finance yahoo and select the current qsp-price
|
||||
Current AAPL stock price is 228.43
|
||||
Current AMZN stock price is 201.85
|
||||
Current IBM stock price is 210.30
|
||||
Current GOOG stock price is 177.86
|
||||
Current MSFT stock price is 414.82
|
||||
Current ORCL stock price is 188.87
|
||||
"""
|
||||
|
||||
|
||||
def stock_price(symbol: str = "AAPL") -> str:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user