GithubHelp home page GithubHelp logo

tamablevirus / bu-registration-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juliusfrost/bu-registration-bot

0.0 0.0 0.0 32 KB

BU class registration bot that beats the competition

Python 100.00%

bu-registration-bot's Introduction

BU Class Registration Bot

With BU Ninja becoming more and more widespread, it is becoming harder to get the class you want. With this bot, however, you can beat the competition for free! (at the moment)
Leave this bot running on a machine and it will constantly check availability of a course and automatically register for it.

Prerequisites

Minimal knowledge of Python
A machine available to run the program 24/7

Installation

Clone the repository to Desktop or Download ZIP and extract
Make sure you have Python installed with Anaconda

Using Anaconda, run this command pip install selenium

Google search and download chrome webdriver, extract to somewhere safe, and add the file path to PATH (in envirionment variables for windows users).
Restart your computer for it to register.
Open the reg.py file with a text editor, and edit the credentials method with your BU login and courses list with the info of the courses you desire.
Finally, run the file and wait.

Optional

If you want you can change which browser to open with Selenium. Goto http://selenium-python.readthedocs.io/api.html
Then replace this on line 91: driver = webdriver.Chrome() to whatever browser you desire. (Note that you might have to install a different web driver for that)
For AWS, find out how to install PhantomJS as it doesn't require any GUI. For PhantomJS it would look like driver = webdriver.PhantomJS().

How it works

Using the Selenium API, the script opens a browser and automatically logs you into the BU Student link. After that it grabs the cookies and closes the browser. Then it sends queries to the course browsing page and when your class is open, it grabs the course selection ID and registers by making a request with that information.

bu-registration-bot's People

Contributors

juliusfrost avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.