Giter VIP home page Giter VIP logo

cunyfirst-enrollment-bot's Introduction

CUNYFIRST Enrollment Bot

CUNYFirst Enrollment Bot

This a CUNYFirst Enrollment bot that notifies you through text and email when there are changes in your enrollment shopping cart. Use this bot and you won't have to sit at your computer and be stressed about not knowing when a class opens up. The bot works by automatically logging you in and heading to your shopping cart. Once at the shopping cart the bot will refresh every 60 seconds by default althogh (you can change that variable in the code). The text/email will show the class section followed by the original status and the latest status of the class. CUNYFIRST TEXT UPDATE

CUNYFIRST EMAIL UPDATE

CUNYFIRST Course Closed to Open

Requirements

  1. Make sure you have python 3.5.1 installed on your computer. Go into your 'Advanced System Settings' and add the python.exe to your Path if you have not already done so. Also add the folder location of phantomjs.exe(which I included with the bot) to your PATH variable. The bot will not work without the location in the PATH variable for your system. Restart your computer after you make changes to your PATH variable.

  2. Go to 'https://twilio.com' and sign up for a free account. Once you are verified and have gotten a twilio number, take the twilio number, auth token, and accountsid, and put them in the code with quotes next to the variables that have the same name. This will allow you to receives text updates when your classes open up. Twilio Info

  3. Go to 'https://myaccount.google.com/security' and scroll all the way to he bottom. Then go to where it says 'Allow less secure apps: ON' and check OFF. You should get an email about the change. Go ahead and update the code to have your gmail email/user and password to send emails to your yourself Google Account

  4. Go to CUNYFIRST, Click Enroll. Then choose your Term. Once you are are on the Shopping Cart Page, Right + Click on the 'add' button and Click on 'Copy Link Location'. Then paste the link next to self.addshoppingcartlink in the code. It should look like the link below:

    self.addshoppingcartlink = 'https://hrsa.cunyfirst.cuny.edu/psc/cnyhcprd/EMPLOYEE/HRMS/c/SA_LEARNER_SERVICES.SSR_SSENRL_CART.GBL?Page=SSR_SSENRL_CART&Action=A&ACAD_CAREER=UGRD&EMPLID=12345678&ENRL_REQUEST_ID=&INSTITUTION=BKL01&STRM=1172'

CUNYFIRST Add Link

How to Run

-Make sure you add phatomjs.exe to your System PATH variable or else the bot will not work. Open a console/terminal window in the same folder as the bot. Type python cunyenrollment.py. After a brief moment a Firefox window will open and the bot the will do the rest.

Bot in Action

Bot in Action3

Bot in Action2

cunyfirst-enrollment-bot's People

Contributors

maxthecoder1 avatar

Stargazers

 avatar gab avatar Tayeba Monsur avatar Mark avatar Yasin Ehsan avatar Ming Lei avatar C avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

cunymap

cunyfirst-enrollment-bot's Issues

Keep Alive

Auto restart if browser is closed or timeout

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.