Skip to content

AlvarodOrs/TestSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNIR Test Bot

A command-line automation tool that logs into the UNIR virtual campus, enters the specified subjects, and resolves the available tests automatically using Selenium.

Features

  • Automates login to the UNIR platform
  • Navigates into one or multiple courses
  • Detects and answers test questions (single choice and multi-choice)
  • Collects correction results when available
  • Uses Chrome WebDriver automatically (via webdriver-manager)
  • Scriptable from the command line

Requirements

  1. Clone the repository:
git clone https://github.com/AlvarodOrs/TestSolver.git
cd TestSolver
  • Python 3.10+
  • Google Chrome installed

Install dependencies:

pip install -r requirements.txt

This installs:

  • selenium
  • webdriver-manager

Everything else used in the project is part of the Python standard library.


Usage

Get the COURSE_ID with:

image

Click the wanted course (1), then copy the url code (2) and repeat with all desired courses.

Run the bot with:

python main.py

Parameters to change on config.py

Argument Required Description
USERNAME Yes Your UNIR login email
PASSWORD Yes Your UNIR campus password
COURSES Yes Comma-separated list of course identifiers

Example:

python main.py

Project Structure

project/
│
├── main.py             # Entry point
├── workers/            # Selenium automation logic
│   ├── __init__.py
│   ├── args.py
│   └── tools.py
│
├── utils.py
│   ├── __init__.py
│   ├── bot_launcher.py
│   ├── log_in.py
│   └── test.py
|
├── config.json
├── requirements.txt
└── README.md

Notes

  • Use a real Chrome installation; Chromium-based forks may cause failures.
  • If your campus has 2FA enabled, the bot will not complete the login automatically.
  • The automation depends on UNIR’s HTML structure; if UNIR updates the site, selectors may need adjustments.

License

MIT License. You are responsible for any use of this script on your own account.

About

CLI automation tool that logs into the UNIR virtual campus and solves available course tests automatically using Selenium.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages