Coder Social home page Coder Social logo

schedulescraper's Introduction

ScheduleScraper

This is a script I created to scrape my co-workers' calendars for unbooked interview times. The script then parses this data, formats it into an email or writes to a shared spreadsheet. The purpose of this app is to increase efficiency within the team and allocate hours to where they are needed most.


To start using the schedule scraper, clone down the repo and inside the root of the project:

run "npm install"
  • modify the contents of constants.js to reflect you and the current staff

  • change the name of auth.example.js to auth.js and fill in relevent fields "client id" and "client secret" can be found by creating a new google dev project

  1. Go to your console for Google developers
  2. Create a new set of credentials with OAuth clientID option
  3. Select Web Application and note the client ID and client Secret
  • "google refresh token" can be received by going to the google Oauth playground
  1. Go to the google OAuth playground
  2. Select the Calendar v3 API and authorize it
  3. Exchange the given Auth code to recieve your refresh token
  • "creds" Both fields can be achieved by making a new google dev project
  1. Go to your console for Google developers
  2. Create a new set of credentials with service account key
  3. Select "Owner" from the roles dropdown
  4. A JSON file of the auth credentials has been saved and you can fill in the relevant details
run "npm run help" to get started
run "npm run sheets" to write to your specified Google Sheets

Run sheets requires the spreadsheet key to be filled in on the Auth file

run "npm run self" to send a formatted email to yourself
run "npm run team" to send a formatted email to your specified team emails

schedulescraper's People

Contributors

dylanlrrb avatar erikjamesthompson avatar gildilocks avatar

Watchers

James Cloos avatar  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.