/resultBot

:blue_book: Python script to download NMU results and send as email

Primary LanguagePythonMIT LicenseMIT

resultBot


A python script to download and email results from North Maharashtra University results website.

Usage Demonstration

Demonstration

Sample Email

Sample Email

Requirements

Installation

  1. Clone repository git clone https://github.com/jarifibrahim/resutBot.git.
  2. Python 2.7 download and installation instructions can be found here.
  3. Download PhantomJS from here. Extract the files and copy phantomjs file from bin directory inside extracted files to repository root folder.
  4. Download and install Selenium using pip install selenium.
  5. Download and install BeautifulSoup using pip install bs4.

Setup

Edit the file config.py to change default configuration.

Usage

$ ./main.py <faculty>

eg: $ ./main.py "Engg and Tech"

Setup script to run periodically to check for results

On Linux

To execute the script periodically setup cron as follows:

  1. Execute crontab -e and append the line.

To execute after every 5 minutes:

*/5 * * * * /path/to/main.py >> /path/to/save/logs 2&>1

To execute after every 15 minutes:

*/15 * * * * /path/to/main.py >> /path/to/save/logs 2&>1

On Windows

Use Windows Task Scheduler