Code for the earning releases algorithm. 

This contains a link to a share file for 6 months of earnings dates (starting from January) for the S&P 500.