Skip to content

Auto fetch zoom links, list recent posts from google classroom,

License

Notifications You must be signed in to change notification settings

renzhamin/zoomer

Repository files navigation

What is this

This is for those doing online classes and the zoomer teachers are constantly changing the zoom link so you have to go to the classroom and fetch it for almost every class

With this cli tool the link will be automatically fetched from your classroom

Installation

  • git clone https://github.com/gr523/zoomer.git clink

  • Install pip (for python3)

  • Install the google authentication libraries

    pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib

  • Create a google client id and enable classroom api

  • Create credential and download it as credentials.json

  • It takes about 5 minutes to set up but its kinda tedious,so I have created a public client id from a dummy google account,so you can test it out right away.Note that client ids have bandwith limits,if other people are using it you will get less speed so if you'r gonna use this tool create your own clinet id

Editing your courses and routine

  • Refer to aliases.py to see how to set up your courses
  • Refer to datatypes.py to see examples on how to create your routine
  • The routines are in .py file because of speed advantages you can use classlist.py if you want to use csv files

Easy way to use

create a file named CL (or your prefered name) with these content

#!/bin/sh
cd "$HOME/clink"
# or wherever you cloned the project
python3 main.py $@ 
chmod +x CL
cd /usr/bin
sudo ln -sf "$HOME/clink/CL"

Usage

  • Arguments with default values are optional

  • To get Links of todays class according to the routine just run CL with no arguments

  • Get recent n posts

    CL post n m

    m = maximum number of posts from one course

    default n=5,m=2

  • Get the most recent link of a specific class

    CL classAlias

  • Get recent n posts of a class

    CL classAlias post n

    default n=2

  • Get the raw json file for recent n posts

    CL classAlias raw n

    default n=5

  • Get Ids for all your courses

    CL id

    A file named 'FetchedCourseIds' will be created in the project directory

  • To use a differnt google account or when token expires remove token.json from project folder,edit your courses and routines, run the program and sign in to that account

  • Screenshot of these examples

Alt

Alt

About

Auto fetch zoom links, list recent posts from google classroom,

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published