Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
/ AUScraper Public archive

A simple app that generates an excel file for a range of register numbers fetched from Anna University server.

License

Notifications You must be signed in to change notification settings

AravindVasudev/AUScraper

Repository files navigation

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

  1. Install Apache 2, PHP 7 and Composer

  2. Clone this repository

  $ git clone https://github.com/AravindVasudev/AUScraper.git
  $ cd AUScraper
  1. Install Dependencies
  $ composer install
  $ npm install

Deploying in Heroku

Deploy

Contribute

You are always welcome to open an issue or provide a pull-request!

License

Built under MIT license.

About

A simple app that generates an excel file for a range of register numbers fetched from Anna University server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published