from bs4 import BeautifulSoup
import requests
name = input('>')
url = 'http://finance.yahoo.com/q?s={}'.format(name)
r = requests.get(url)
soup = BeautifulSoup(r.text)
data = soup.find('span', attrs={'id': 'yfs_l84_'.format(name)})
print(data.text)
Using python and urllib to get data from Yahoo FInance