i'm new to programming and i'm just trying to get "Target price: value from yahoo finance i tried beautifulsoup, xpath...but never succeed to extract the data (241.21 $ ) on the following example
example : https://finance.yahoo.com/quote/MSFT/analysis?p=MSFT
import requests
from bs4 import BeautifulSoup as bs
ticker = 'MSFT'
url ='https://finance.yahoo.com/quote/'+Symbol
page = requests.get(url)
soup = bs(page.text, "html.parser")
for row in table:
col = row.find_all('span')
for c in col:
print(c.text)
When printing all spans, it doesnt show up...