GithubHelp home page GithubHelp logo

hashiconf_schedule_import's Introduction

Note

I am not responsible for anything that happens, ever. This code is WTFPL

What is this

The HashiConf schedule is a javascript powered page located here: https://hashiconf.hashicorp.com/schedule?day=2

I wanted this conveniently in my google calendar.

UPDATE: I edited the code a bit to just output .ics files. You can add them independently or just use the ENTIRE_HASHICONF_SCHEDULE.ics file.

how this works

This script requires access to your google account. It's a mostly direct copy of the quickstart.py from https://developers.google.com/calendar/quickstart/python.

Because the schedule page is javascript powered, I couldn't just pull the page into BeautifulSoup (which doesnt read javascript). Instead I manually opened each page in inspector, forced the day, and saved the output html into this repo. Not great. Not terrible.

Usage

  1. Do not commit the token.pickle file or your credentials.json.
  2. OPTIONAL: If you think the schedule changed, you will need to manually save the html into the *.html files. I'm gonna assume the schedule wont just change, or you'll see a lot of stressed out Hashiconf employees around.
  3. Go to https://developers.google.com/calendar/quickstart/python and follow step 1 to generate a credentials.json file for yourself. It'll look like mine, but that one'll be yours.
  4. Run python run_me.py. It will do the auth bounce and grant access to this app to your google calendar. It'll then read the schedule.json file and create events.

hashiconf_schedule_import's People

Contributors

orenmazor avatar

Watchers

 avatar James Cloos avatar

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.