GithubHelp home page GithubHelp logo

papercop's Introduction

Papercop

The Question Paper portal of IIT Kharagpur

Visit : www.papercop.in

#How it all happened?

Step 1 :

  • Dump all the papers from the library site. ( Simply mirror the site)
  • Rename all the papers with the subject numbers for uniformity and search purposes. ( Using the script "threemasters.py" )
  • Manually rename some papers which are left out because of exceptions

Step 2:

  • Make encoded data to be used to determine the subjects in a particular semester of particular department.
  • We used pickle files to store data.
  • Each pickle files contains a list of lists corresponding to every department. (Code not available)

#How it works?

  • It processes the input ( Roll number) for all the requred fields i.e Department and Semester number.
  • Uses this information to load the corresponding pickle file.
  • Use the semester number to obtain the list of subjects in that semester.
  • Call "papercop.py" to do the rest.
  • Rest: copy requred files into temporary directory, zip it and output it to the user as an attachment.

#Example:

  • Input: "12MA20007"
  • Pickle file required : "MA2.pickle"
  • Semester number = (14-(12))*2 + 2(Spring Semster)
  • Obtains list = ['Subject 1.pdf', 'Subject 2.pdf'] Do the rest.

papercop's People

Contributors

anujmenta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

papercop's Issues

Zip file does not open on Ubuntu without Breadth and Additional subjects added.

I tried downloading without giving any option for Breadth and Additional, and again with only Breadth. Zip file failed to open both the times. Worked when Additional was added.

Error:

Archive: xxxxx.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of xxxxx.zip or
xxxxx.zip.zip, and cannot find xxxxx.zip.ZIP, period.

Choice of number of years

By default, users get question papers of three years. We can also ask them to input how much they need (e.g. 2 yrs, 5 yrs) and then return fetching from whatever we have in our database. If they don't give any input, it'll be same as the default.
How good is it?

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.