Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A quick and dirty project to figure out how much an Apple product would be worth in Apple stock today
branch: master
Failed to load latest commit information.
LICENSE Update the README. Add a LICENSE and depedencies
README.md Update the README. Add a LICENSE and depedencies
apple-specs-with-current.json
apple-specs.json Remove extra print statements
apple_stock_data.csv Add iPad and iPhone stats, update stock prices to 2012
generate_table.py
ipod_or_stock.py Add current prices for all Apple products
requirements.txt Update the README. Add a LICENSE and depedencies
scrape_everymac.py

README.md

Apple Stock or Apple Product?

A simple exploration into the world of missed opportunities.

Installation

pip install -r requirements.txt

Creating the Dataset

python scrape_everymac.py
python ipod_or_stock.py

The output will be apple-specs-with-current.json which includes the original prices for each item as well as how many shares that item was worth on release day.

Thanks

Big thanks to http://www.everymac.com for the data. Also, if you ever need to parse HTML in Python, BeautifulSoup is amazing.

apple-specs.json contains detailed specs for almost every Apple product released in the last thirteen years. I hope someone finds it useful.

Something went wrong with that request. Please try again.