Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
Raybeam OOO Calendar To set up (DO NOT RUN IN PROD, IT WILL WIPE OUT THE EXISTING DATABASE AND LOSE THE REVISION HISTORY OF EVENTS): python ooo_calendar_scraper.py create_database To pull events: python ooo_calendar_scraper.py scrape This can be run over and over, though be warned, by default it will send emails to anyone with a bad event. You may want to comment that part out for testing things. It currently pulls between 2005 and 2015. The line that sets these two years has a comment before it: # SCRAPE YEAR BOUNDARIES Make sure to advance this window as time goes on. For the end-of-year, or any mid-year OOO reporting: There are a few things that are hard-coded, such as holiday dates and the year boundaries. I'm sure these could be automatically calculated, but it never seemed like a priority since it only needs to be done once a year. I am placing the following comment: # HAND-CODED REPORTING DATES near any line that needs to be updated each year for reporting the totals. Alternately, search for 2013 and 2012, since it is currently set up to report accurately for 2012. To generate a text dump of event totals and all events: python ooo_calendar_scraper.py report To email the totals for the year to each person: python ooo_calendar_scraper.py send_totals