Scrap data

i need help for scrap data from nifty50 companies 

I need last price , 1m return ,pe ,p-b ,eps growth ,de ,roce for each company in nifty50  and want to upload data together out should be out form of an excel sheet 



how to do it plazz help me let me know 

 

Hi Vikas, 



Firstly, you will need to get the list of stocks that make up the index. 

This can be found on Wikipedia or through the exchange's website such as NSE



Following this step, you can refer to this blog and fetch the historical & last trade price data.

Using the same, you can also calculate the returns for the past 1M.



For fetching the fundamental data, once again you can follow the steps within the blog.

Alternatively, you may also refer to Sections 2 and 7 of the course on Getting Market Data



Finally, once you have fetched all the data and stored it in a dataframe, you can convert the same to a CSV file by using the pd.to_csv() function.

Visit this page for more info on how to use the function. 



Hope this points you in the right direction.