Coder Social home page Coder Social logo

munfred / gcaltech.com Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.39 MB

Daily emails with events from the Caltech master calendar with links to add them to Google calendar

License: The Unlicense

CSS 83.39% JavaScript 8.11% HTML 1.15% Python 7.35%

gcaltech.com's Introduction

gcaltech.com

Daily emails with events from the Caltech master calendar with links to add them to Google calendar

The Python script gcaltech.py fetches the Caltech master calendar HTML (http://www.caltech.edu/master-calendar/day), parses the event info, then discards everything that is not the event tables. Then it creates an even in a public Google calendar for each event from the master calendar, and then replaces "add to ical" links from the original html with "add to google calendar" and corresponding links. Then it does some more html wrangling to make it look pretty.

Then it uses the mailchimp API to send the emails every time it's run. The script currently runs on a Google cloud free tier instance with a daily cron job.

Some references I found useful:

https://ironboundsoftware.com/blog/2018/02/25/daily-email-list-python-mailchimp/ https://developers.google.com/calendar/

Huge thanks to Will Graf for fixing the code after Caltech updated it's website and broke everything in February 2019. He taught me how to use .env files to not commit my secrets.

gcaltech.com's People

Contributors

munfred avatar

Watchers

 avatar

gcaltech.com's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.