Skip to main content

UCI WebReg Python API

Everything you need to create a UCI WebReg Bot within 5 minutes!

Introduction

Designed for UC Irvine WebReg, WebReg API is a Python API you need to create your own enrollment bot script within less than 10 lines of code!

Unlike other bots, it is deeply integrated with WebReg and takes advantage of Selenium technology which makes it robust, fast, and secure.

Highlights

  • Secure. The top priority is that you'll never get banned because of using this. The bot simulates that a real person and a real browser would do so any kind of behavioral detection will not be able to distinguish you from other people.
  • Robust. The API keeps track of the WebReg login status. So it won't crash due to exceptions like maintenance or unopened enrollment window.
  • Versatile. The API helps you not only enroll in classes, but also check study lists, waitlists, and so on.

Prerequisite

  • Chrome browser and Python 3.6+

Working Functions

  • Add/Change/Drop courses
  • Add/Drop wait list courses
  • See open sections of a course
  • Fetch study list and wait list
  • Auto-logout

Deployment

  • Install Selenium
pip3 install selenium
  • Download WebDriver and make it executable

https://sites.google.com/a/chromium.org/chromedriver/downloads

chmod +x ./webdriver
  • Make it yours
git clone https://github.com/maao666/UCI_WebReg_API.git
  • Example
form WebReg import WebReg
from pprint import pprint # Not required

# Replace username and password with yours
wr = WebReg().login('username', 'password')

# Add a course
wr.add_course('16570')

# Change to Pass/No Pass
wr.change_course('16570', letter_grade=False)

# Drop a course
wr.drop_course('16570')

# See available sections
pprint(wr.list_open_sections('16570'))

# Get study list
pprint(wr.get_study_list())

#It automatically logs out so no logout operation required

We humbly ask you for a star if this helps you.

To UCI Registrar: The technology you use for WebReg is so lame! I can't believe you use a Shell script for load-balancing and redirecting. Such a shame on you and OIT for creating such a terrible user experience! I'm confident that you are not smart enough to catch my bot till I graduate. We'll see.

Release files for webreg 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for webreg 0.2
File Size Uploaded
webreg-0.2.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for webreg 0.2
File Interpreter ABI Platform
webreg-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / webreg-0.2.tar.gz

Download URL webreg-0.2.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7a354bae1e54657f7604d41aa9271aa469efdd4ed6eaa295797c50d96c3d9e15
BLAKE2b-256 checksum
How to use checksums
70e52c1055139d4058a869d5f450a20121d61c7b013bf4872506975b8cbdf1ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / webreg-0.2-py3-none-any.whl

Download URL webreg-0.2-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fc1d8e241de25d960d6d047bc0532d48a32cba88b9dd4dd1607c7b4657bcb32
BLAKE2b-256 checksum
How to use checksums
f26a70f5fe6387b72de6b21ec201b99f924126d508697328e298ef01706e00f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page