2

I want to read stock data into a pandas dataframe. This question roughly matches what I want to do, but it recommends web scraping. I don't want to rely on web scraping to get my data, as I might need to rewrite my scraper if the website is redesigned.

How can I get the data from this website into a pandas dataframe without web scraping?

1 Answer 1

1

Just pass the url to pandas.read_csv

import  pandas as pd

df = pd.read_csv("http://www.nasdaq.com/screening/companies-by-industry.aspx?exchange=NASDAQ&render=download")

print(df)
Sign up to request clarification or add additional context in comments.

1 Comment

well now, that was easy. Thank you, Padraic.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.