Where can I download historical market capitalization and daily turnover data for stocks? There are plenty of sources which provide the historical stock data but they only provide the OHLC fields along with volume and adjusted close. Also a couple of sources I found provide market cap data sets but they're restricted to US stocks. Yahoo Finance provides this data online but there's no option to download it ( or none I am aware of ). 


Where can I download this data for stocks belonging to various top stock exchanges across countries by using their ticker name ?
Is there some way to download it via Yahoo Finance or Google Finance ?


I need data for the last decade or so and hence need some script or API which would do this.
Quant SE is better place for questions related to getting financial data:

What data sources are available online
Market capitalization data | Quantitative Finance