I'm trying an Options Algo which is designed to perform only on non earning realase weeks of the stock. I would like to test with all SP 500 tickers, It would be hard to hard code all the earning dates for all the SP 500 companies for last 5/10 years. Is there way to indentify & avoid earning release day/week in back testing?