Unfortunately, your preconceived notions of the economy will be dealt with by the full extent of the market. Plan accordingly.

How to Scrape and Parse Stock Earnings Reports

For years I looked for a simple way to get earnings reports from Wall
St. It seems they would change their earning reports on a regular basis
and the dates would be inconsistent. Then one day when I wasn’t paying
attention, BAM. Earnings report and the stock would take off or crash on
the numbers and I would be left holding the bag or missed the boat. You
get the point.

It has been my experience that Yahoo Financial calendar provides the
most consistent and update earning report for listed companies. (If
there any better ones out there please do email or do PR for the repo.)
So now that I have found a source, how to do I make take that
information and standardize and normalize it into a database. Obviously
once I have that information in a database, I can use that data to
purchase calls, puts or evaluate the earnings date based on a host of
other information I have available to “cross reference” or analyze.

Luckily, through the power of scraping + python + github anybody can
now have standardized earnings date reports and now I can scrape and
standard the data and manipulate it to my needs.

In my repo I added the file earnings.py. This is where the magic occurs..

Then we have to a little “wonky” stuff with the dates that we are
going to query. It seems like weather I’m in PHP or Python, I’m always
getting entagled in dealing with DATE or TIME, if anybody can parse
those dates better please send at PR.