mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 01:00:15 +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 bs4 import BeautifulSoup
|
||||||
from requests import get
|
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:
|
def stock_price(symbol: str = "AAPL") -> str:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user