Using python pandas's Datareader for yahoo finance's key statistic web page vs default yahoo's finance's historial prices web page -


i trying use python's pandas library data scrapping yahoo finance pull data it's historical prices using datareader pandas, want pull data yahoo finance it's key statistic web page "price/book ratio". not sure how modify datareader pull data other historical prices.

i use pandas library web scraping, there different functions in pandas me pull data different web page of yahoo finance or modify datareader function pull other data? saving in html?

there python yahoo-finance module. can there data want.

additionally can build request function:

def __request(symbol, stat):     url = 'http://finance.yahoo.com/d/quotes.csv?s=%s&f=%s' % (symbol, stat)     return urllib.urlopen(url).read().strip().strip('"') 

use data need. example, last price:

def get_price(symbol):      return __request(symbol, 'l1') 

here list other fields can extract.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -