Skip to content
/ sp500csv Public

Download a list of companies in the S&P 500 as a csv file.

Notifications You must be signed in to change notification settings

noahg/sp500csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S&P 500 csv

Download a list of companies in the S&P 500 as a csv file.

Build Status

How to use

Just download the data/sp500.csv file from this repo.

See datapackage.json for table schema.

Or, build the csv yourself:

  1. git clone [email protected]:noahg/sp500csv.git

  2. cd sp500csv/scripts

    pip install -r requirements.txt

  3. make

Validation

To validate your build against the schema as defined in datapackage.json run:

  1. pip install -r requirements-for-validate.txt
  2. python validate.py

Source

The data is scrapped from the Wikipedia page: https://en.wikipedia.org/w/index.php?title=List_of_S%26P_500_companies

It appears as that the above is a frequently maintained, see recent changes list on the same page.

Credits

This is a simplified version of DataHub's repository s-and-p-500-companies.

About

Download a list of companies in the S&P 500 as a csv file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages