A python script to download and email results from North Maharashtra University results website.
- Clone repository
git clone https://github.com/jarifibrahim/resutBot.git
. - Python 2.7 download and installation instructions can be found here.
- Download PhantomJS from here. Extract the files and copy
phantomjs
file frombin
directory inside extracted files to repository root folder. - Download and install Selenium using
pip install selenium
. - Download and install BeautifulSoup using
pip install bs4
.
Edit the file config.py to change default configuration.
$ ./main.py <faculty>
eg: $ ./main.py "Engg and Tech"
To execute the script periodically setup cron
as follows:
- 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