https://github.com/dvx/snp500
JSON endpoint that returns an up-to-date list of S&P500 constituents scraped from Wikipedia.
https://github.com/dvx/snp500
Last synced: about 2 months ago
JSON representation
JSON endpoint that returns an up-to-date list of S&P500 constituents scraped from Wikipedia.
- Host: GitHub
- URL: https://github.com/dvx/snp500
- Owner: dvx
- License: mit
- Created: 2018-12-04T22:36:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-06T19:52:21.000Z (over 7 years ago)
- Last Synced: 2026-01-01T19:28:12.381Z (6 months ago)
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## snp500
JSON endpoint that returns an up-to-date list of S&P500 constituents scraped from Wikipedia. I got tired of writing (or finding) code that gets the S&P500 symbols every time I needed them, so I threw together this endpoint. It should be around as long as Heroku and Wikipedia are around.
## why doesn't Standard & Poor's have a master list somehwere?
Beats me.
## how do you generate the list?
I grab it from Wikipedia and cache it on redis. When the page revision changes, the cache is updated.
## what is `sane`?
`sane` indicates whether or not we're getting 505 symbols back, as expected. Keep in mind that Wikipedia might not always be right, so *caveat emptor*.
## what's the URL?
https://snp500.herokuapp.com/
## license
MIT