



'''simple docstring'''




import requests
from bsa import BeautifulSoup



def       a     (					lowerCamelCase__ = "AAPL"       ):
			'''simple docstring'''





			A_      :		Optional[Any]      =	f'https://in.finance.yahoo.com/quote/{symbol}?s={symbol}'
			A_      :		Tuple      =	BeautifulSoup(requests.get(_UpperCamelCase       ).text		, """html.parser"""       )
			A_      :		Optional[Any]      =	"""My(6px) Pos(r) smartphone_Mt(6px)"""
			return soup.find("""div"""		, class_=class_       ).find("""span"""       ).text


if __name__ == "__main__":
						for symbol in "AAPL AMZN IBM GOOG MSFT ORCL".split():
												print(F"Current {symbol:<4} stock price is {stock_price(symbol):>8}")


import re

from filelock import FileLock


try:
      import nltk

      a_     :    Optional[Any]     		=   True
except (ImportError, ModuleNotFoundError):
      a_     :    Union[str, Any]     		=   False

if NLTK_AVAILABLE:
      with FileLock(".lock") as lock:
            nltk.download("punkt", quiet=True)


def 							__lowerCAmelCase     (							_UpperCamelCase		:	str						)		->				str:
 '''simple docstring'''


 re.sub('<n>'		,				''		,				_UpperCamelCase						)  # remove pegasus newline char
 assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
 return "\n".join(nltk.sent_tokenize(_UpperCamelCase						)						)

