Skip to content

Python enroll script for ASVZ optimized for fast registration to congested courses

Notifications You must be signed in to change notification settings

uniquefine/asvz_fast_enroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ASVZ fast enroll

This is a small python script that enrolls you (a student of ETH) in asvz classes that requre registration (all of them as of summer 2020).

The code logs in before the start of the enrollment and then just posts the enrollment request. This should be faster than a pure selenium registration.

Please get in touch if the script is broken or you need help.

Getting Started

  1. Install Selenium chromedriver or geckodriver for Selenium
  2. Install python requirements pip -r install requirements.txt
  3. Save your netz username and password in a file credentials.json in the same folder {"username":"your_username", "password":"your_password"}. Your credentials are only used to login with switch.
  4. (Run test with python3 test.py)
  5. Call asvz\_register.py <lesson_id> with find course on asvz, copy the lesson id from the url. Example: for https://schalter.asvz.ch/tn/lessons/95699 asvz\_register.py 95699

The script will retrieve the enrollment time and wait for it to start before trying the login. The script must be running to enroll so keep it on a server or some other machine that is online until the enrollment starts.

Acknowledgments

About

Python enroll script for ASVZ optimized for fast registration to congested courses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages