python - issue with yahoo finance and beautifulsoup -
i trying grab 1 value yahoo finance, enterprise value/ebitda using beautifulsoup when access data based on page source appears not exist there, here code:
import requests bs4 import beautifulsoup page=requests.get("https://finance.yahoo.com/quote/aapl/key-statistics?p=aapl") soup=beautifulsoup(page.content, 'html.parser') table=soup.find_all(class_="fz(s) fw(500) ta(end)") print(table)
and here result 'nothing'.
[]
why table
empty? shouldnt yield html code contains value need? should use access value? thanks!
Comments
Post a Comment