DISCLAIMER: Anna University has closed the portal through which this script accessed semester results without Date of Birth. This will start working when Anna University opens the portal back for the next semester results.
AU Portal: http://aucoe.annauniv.edu/cgi-bin/result/cgrade.pl?regno=
(If this works, the app will too)
AUScraper
A simple app that generates an excel file for a range of register numbers fetched from Anna University server.
Index
Demo
Check it out: https://auscraper.herokuapp.com/
Technology Colophon
-
Backend -
- PHP 7, Composer
- phroute - routing
- guzzle - To send asynchronous request
- PHPExcel - To generate Excel file
- Gulp - Task Runner
-
Frontend -
- scss - CSS preprocessor
- browserify, babble - ES6 support
- JQuery, materialize.css, Modernizr, Normalize.css
API Endpoints
POST /api/json HTTP/1.1
Request body:
{
'regno': [Register Number],
'offset': [Number of results to be downloaded after the given `regno`. range: 0 - 99]
}
Response:
- onsuccess - Array of JSON results.
- onerror - Response Code: 400[Bad Request]. responseBody.error -> Error Message.
POST /api/excel HTTP/1.1
Request body:
{
'regno': [Register Number],
'offset': [Number of results to be downloaded after the given `regno`. range: 0 - 99]
}
Response:
- onsuccess -
.xlsx
file with results.Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- onerror - Response Code: 400[Bad Request]. responseBody.error -> Error Message.
Note: Use resources/scripts/app.js
as reference to send request via web client.
Installation
-
Install Apache 2, PHP 7 and Composer
-
Clone this repository
$ git clone https://github.com/AravindVasudev/AUScraper.git
$ cd AUScraper
- Install Dependencies
$ composer install
$ npm install
Deploying in Heroku
-
Following Installation, Install
Heroku Toolbelt
andGit Client
. -
Create a new Heroku App and push the code
$ heroku create
$ git push heroku master
Contribute
You are always welcome to open an issue or provide a pull-request!
License
Built under MIT license.