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)
A simple app that generates an excel file for a range of register numbers fetched from Anna University server.
Check it out: https://auscraper.herokuapp.com/
-
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
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.
-
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
You are always welcome to open an issue or provide a pull-request!
Built under MIT license.