Skip to main content

Python API for UCI WebReg

Project description

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.

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webreg-0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webreg-0.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file webreg-0.2.tar.gz.

File metadata

  • Download URL: webreg-0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for webreg-0.2.tar.gz
Algorithm Hash digest
SHA256 7a354bae1e54657f7604d41aa9271aa469efdd4ed6eaa295797c50d96c3d9e15
MD5 fc41bf6f6387ac9682493ca924fca828
BLAKE2b-256 70e52c1055139d4058a869d5f450a20121d61c7b013bf4872506975b8cbdf1ba

See more details on using hashes here.

File details

Details for the file webreg-0.2-py3-none-any.whl.

File metadata

  • Download URL: webreg-0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for webreg-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9fc1d8e241de25d960d6d047bc0532d48a32cba88b9dd4dd1607c7b4657bcb32
MD5 c50da49152fe9dabf2a1759dfd5115dd
BLAKE2b-256 f26a70f5fe6387b72de6b21ec201b99f924126d508697328e298ef01706e00f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page