GithubHelp home page GithubHelp logo

asdbaihu / kannur-university Goto Github PK

View Code? Open in Web Editor NEW

This project forked from captswag/kannur-university

0.0 0.0 0.0 1.66 MB

A java library, which provides a simple way to download pdf's of mark lists and hall tickets of students from official Kannur University website.

Home Page: http://4k3r.github.io/kannur-university/

License: MIT License

Java 100.00%

kannur-university's Introduction

Kannur University API

A java library, which provides a simple way to download pdf's of mark lists and hall tickets from www.kannuruniversity.ac.in of students

API uses Apache Http Package for making requests and gettings responses, and Jsoup for finding the request url from the input url (web scraping)

How to Use

Download the jar file kannur-university-1.0.jar and set class path in java. Alternatively add the library to your build path in your favorite IDE.

Quick video demo on using Kannur University Library https://www.youtube.com/watch?v=NRMvYG0rbNE

Example

Downloading hall ticket

Requires register number and birthday to be set

HallTicket anjith = new HallTicket("B1ENCS5106", "28", "8", "1993");
RequestUri uri = new RequestUri("http://14.139.185.42/kannur/assistant/online/btech8regular2015/btech8thhal.php");
uri.parseRequestUri();
NetworkCall call = new NetworkCall();

if (call.requestHallTicket(anjith, uri) > 0) {
    System.out.print("Success");
}
else {
    System.out.print("Failure");
}

Downloading mark list

Requires register number and exam type to be set

  • R - Regular
  • S - Supply
  • I - Improvement
MarkList anjith = new MarkList("B1ENCS5106", "R");
RequestUri uri = new RequestUri("http://14.139.185.42/kannur/assistant/btech7Result112014ren/btech7th.php");
uri.parseRequestUri();
NetworkCall call = new NetworkCall();

if (call.requestMarkList(anjith, uri) > 0) {
    System.out.print("Success");
}
else {
    System.out.print("Failure");
}

License

Kannur University API is released under MIT Licence. See file LICENCE.

kannur-university's People

Contributors

captswag avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.